pub enum NetError {
Show 13 variants
PinMismatch {
expected: String,
got: String,
},
ProtocolVersion {
peer: u16,
expected: u16,
},
Unauthorized(String),
Rejected {
code: String,
message: String,
},
Disconnected(String),
NotReady,
RequestTimeout,
HandshakeTimeout,
FrameTooLarge,
BadFrame,
Io(String),
Crypto(String),
MalformedKey(String),
}Variants§
PinMismatch
ProtocolVersion
Rejected
Disconnected(String)
The transport died. The supervisor dials again.
NotReady
The handle sits between connections and accepts no frame.
RequestTimeout
The caller’s own deadline elapsed while the request was in flight.
HandshakeTimeout
FrameTooLarge
BadFrame
Io(String)
Crypto(String)
MalformedKey(String)
Trait Implementations§
impl Eq for NetError
Source§impl Error for NetError
impl Error for NetError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for NetError
impl From<Error> for NetError
Source§fn from(error: SignatureError) -> Self
fn from(error: SignatureError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for NetError
Auto Trait Implementations§
impl Freeze for NetError
impl RefUnwindSafe for NetError
impl Send for NetError
impl Sync for NetError
impl Unpin for NetError
impl UnsafeUnpin for NetError
impl UnwindSafe for NetError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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