#[repr(i32)]pub enum Error {
Show 20 variants
PermissionDenied = 1,
NotFound = 2,
Interrupted = 4,
WouldBlock = 11,
AlreadyExists = 17,
InvalidInput = 22,
BrokenPipe = 32,
AddrInUse = 98,
AddrNotAvailable = 99,
ConnectionAborted = 103,
ConnectionReset = 104,
NotConnected = 107,
TimedOut = 110,
ConnectionRefused = 111,
InvalidData = 536_870_912,
WriteZero = 536_870_913,
UnexpectedEof = 536_870_914,
Other = 1_073_741_823,
UserRangeStart = 1_073_741_824,
UserRangeEnd = 2_147_483_647,
}Expand description
Error code definitions and space allocation.
Only non-zero positive values are valid errors. The variants are designed to map to std::io::ErrorKind. See the source for the value mapping.
Variants§
PermissionDenied = 1
NotFound = 2
Interrupted = 4
WouldBlock = 11
AlreadyExists = 17
InvalidInput = 22
BrokenPipe = 32
AddrInUse = 98
AddrNotAvailable = 99
ConnectionAborted = 103
ConnectionReset = 104
NotConnected = 107
TimedOut = 110
ConnectionRefused = 111
InvalidData = 536_870_912
WriteZero = 536_870_913
UnexpectedEof = 536_870_914
Other = 1_073_741_823
This value is reserved for Other, but all undefined values also map
to Other.
UserRangeStart = 1_073_741_824
Start of the range of values reserved for user-defined errors.
UserRangeEnd = 2_147_483_647
End (inclusive) of the range of values reserved for user-defined errors.
Trait Implementations§
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 UnsafeUnpin 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