pub struct ErrorWithAlert<'a> {
pub error: Error,
/* private fields */
}Expand description
An Error along with the (possibly encrypted) alert to send to
the peer.
This borrows the output buffer passed to the operation that failed; the alert (if one is to be sent) has been appended to that buffer.
Fields§
§error: ErrorThe error
Implementations§
Source§impl<'a> ErrorWithAlert<'a>
impl<'a> ErrorWithAlert<'a>
Sourcepub fn tls(&self) -> &[u8] ⓘ
pub fn tls(&self) -> &[u8] ⓘ
Yields remaining TLS data, if any, to send to the peer.
The returned slice is the contents of the output buffer passed to the failed operation: the alert (if one is to be sent) and any TLS data generated before the error. Send it to the peer before closing the connection.
Trait Implementations§
Source§impl Debug for ErrorWithAlert<'_>
impl Debug for ErrorWithAlert<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ErrorWithAlert<'a>
impl<'a> !UnwindSafe for ErrorWithAlert<'a>
impl<'a> Freeze for ErrorWithAlert<'a>
impl<'a> Send for ErrorWithAlert<'a>
impl<'a> Sync for ErrorWithAlert<'a>
impl<'a> Unpin for ErrorWithAlert<'a>
impl<'a> UnsafeUnpin for ErrorWithAlert<'a>
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