pub enum Error {
Ssl(Error),
Io(Error),
ConnectionNotFound,
WouldBlock,
WouldBlockMidHandshake(MidHandshakeSslStream<UdpConn>),
}
Expand description
I/O errors that sockets secured by DTLS can encounter
Variants
Ssl(Error)
There was in issue within openssl - this is more likely
to be a bug in kwap
than a bug in openssl
.
Io(Error)
There was an IO error raised by the underlying socket
ConnectionNotFound
A message was received from / outbound to an address that we haven’t established a connection with
WouldBlock
The operation would block
WouldBlockMidHandshake(MidHandshakeSslStream<UdpConn>)
TODO probably unnecessary
Trait Implementations
sourceimpl From<ErrorStack> for Error
impl From<ErrorStack> for Error
sourcefn from(e: ErrorStack) -> Self
fn from(e: ErrorStack) -> Self
Converts to this type from the input type.
sourceimpl From<HandshakeError<UdpConn>> for Error
impl From<HandshakeError<UdpConn>> for Error
sourcefn from(e: HandshakeError<UdpConn>) -> Self
fn from(e: HandshakeError<UdpConn>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more