#[repr(u16)]pub enum NetError {
DirectionAlreadySet = 1,
WsError = 2,
IoError = 3,
ConnectionError = 4,
SerializationError = 5,
ProtocolError = 6,
AccessDenied = 7,
InternalError = 8,
PeerAlreadyConnected = 9,
Closing = 10,
}
Variants§
DirectionAlreadySet = 1
WsError = 2
IoError = 3
ConnectionError = 4
SerializationError = 5
ProtocolError = 6
AccessDenied = 7
InternalError = 8
PeerAlreadyConnected = 9
Closing = 10
Trait Implementations§
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)>
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<NetError> for ProtocolError
impl From<NetError> for ProtocolError
source§impl PartialEq for NetError
impl PartialEq for NetError
source§impl TryFrom<u16> for NetError
impl TryFrom<u16> for NetError
§type Error = TryFromPrimitiveError<NetError>
type Error = TryFromPrimitiveError<NetError>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for NetError
impl TryFromPrimitive for NetError
impl Eq for NetError
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 UnwindSafe for NetError
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
source§impl<E> Fail for E
impl<E> Fail for E
source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more