pub struct ErrorWithAlert {
pub error: Error,
/* private fields */
}Expand description
An Error along with the (possibly encrypted) alert to send to
the peer.
Fields§
§error: ErrorThe error
Implementations§
Source§impl ErrorWithAlert
impl ErrorWithAlert
Sourcepub fn take_tls_data(&mut self) -> Option<Vec<u8>>
pub fn take_tls_data(&mut self) -> Option<Vec<u8>>
Consume any pending TLS data.
The returned buffer will contain the alert, if one is to be sent.
Trait Implementations§
Source§impl Debug for ErrorWithAlert
impl Debug for ErrorWithAlert
Source§impl Deref for ErrorWithAlert
impl Deref for ErrorWithAlert
Auto Trait Implementations§
impl Freeze for ErrorWithAlert
impl !RefUnwindSafe for ErrorWithAlert
impl Send for ErrorWithAlert
impl Sync for ErrorWithAlert
impl Unpin for ErrorWithAlert
impl UnsafeUnpin for ErrorWithAlert
impl !UnwindSafe for ErrorWithAlert
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more