pub enum Error {
Show 34 variants
Unknown = 0,
OperationNotSupported = 95,
ProtocolNotSupported = 93,
NoBufferSpace = 105,
NetworkDown = 100,
AddressInUse = 98,
AddressNotAvailable = 99,
ConnectionRefused = 111,
OperationNowInProgress = 115,
NotSocket = 88,
AddressFamilyNotSupported = 97,
WrongProtocol = 71,
TryAgain = 11,
BadFileDescriptor = 9,
InvalidInput = 22,
TooManyOpenFiles = 24,
BadAddress = 14,
PermissionDenied = 13,
NetworkReset = 102,
NetworkUnreachable = 101,
HostUnreachable = 113,
NotConnected = 107,
MessageTooLong = 90,
TimedOut = 110,
ConnectionAborted = 103,
ConnectionReset = 104,
ProtocolNotAvailable = 92,
AlreadyConnected = 106,
SocketTypeNotSupported = 94,
Terminating = 156_384_765,
NameTooLong = 36,
NoDevice = 19,
FileStateMismatch = 156_384_766,
Interrupted = 4,
}
Variants§
Unknown = 0
OperationNotSupported = 95
ProtocolNotSupported = 93
NoBufferSpace = 105
NetworkDown = 100
AddressInUse = 98
AddressNotAvailable = 99
ConnectionRefused = 111
OperationNowInProgress = 115
NotSocket = 88
AddressFamilyNotSupported = 97
WrongProtocol = 71
TryAgain = 11
BadFileDescriptor = 9
InvalidInput = 22
TooManyOpenFiles = 24
BadAddress = 14
PermissionDenied = 13
NetworkReset = 102
NetworkUnreachable = 101
HostUnreachable = 113
NotConnected = 107
MessageTooLong = 90
TimedOut = 110
ConnectionAborted = 103
ConnectionReset = 104
ProtocolNotAvailable = 92
AlreadyConnected = 106
SocketTypeNotSupported = 94
Terminating = 156_384_765
NameTooLong = 36
NoDevice = 19
FileStateMismatch = 156_384_766
Interrupted = 4
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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