pub enum HandshakeError<S> {
Failure(Error),
WouldBlock(MidHandshakeDtlsStream<S>),
}
Expand description
An error that can occur during the handshake-process.
Variants§
Failure(Error)
An error occurred during the handshake process, see inner error for more information.
WouldBlock(MidHandshakeDtlsStream<S>)
A stream interrupted midway through the handshake process due to a
WouldBlock
error.
Note that this is not a fatal error and it should be safe to call
handshake
at a later time once the stream is ready to perform I/O
again.
Trait Implementations§
Source§impl<S: Debug> Debug for HandshakeError<S>
impl<S: Debug> Debug for HandshakeError<S>
Source§impl<S> From<ErrorStack> for HandshakeError<S>
impl<S> From<ErrorStack> for HandshakeError<S>
Source§fn from(e: ErrorStack) -> HandshakeError<S>
fn from(e: ErrorStack) -> HandshakeError<S>
Converts to this type from the input type.
Source§impl<S> From<HandshakeError<S>> for HandshakeError<S>
impl<S> From<HandshakeError<S>> for HandshakeError<S>
Source§fn from(e: HandshakeError<S>) -> HandshakeError<S>
fn from(e: HandshakeError<S>) -> HandshakeError<S>
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> Freeze for HandshakeError<S>
impl<S> !RefUnwindSafe for HandshakeError<S>
impl<S> Send for HandshakeError<S>where
S: Send,
impl<S> Sync for HandshakeError<S>where
S: Sync,
impl<S> Unpin for HandshakeError<S>where
S: Unpin,
impl<S> !UnwindSafe for HandshakeError<S>
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