pub struct Errno(/* private fields */);
Expand description
Implementations§
Source§impl Errno
impl Errno
Sourcepub fn from_io_error(io_err: &Error) -> Option<Self>
pub fn from_io_error(io_err: &Error) -> Option<Self>
Extract an Errno
value from a std::io::Error
.
This isn’t a From
conversion because it’s expected to be relatively
uncommon.
Sourcepub const fn raw_os_error(self) -> i32
pub const fn raw_os_error(self) -> i32
Extract the raw OS error number from this error.
Sourcepub const fn from_raw_os_error(raw: i32) -> Self
pub const fn from_raw_os_error(raw: i32) -> Self
Construct an Errno
from a raw OS error number.
Source§impl Errno
impl Errno
Sourcepub const ADDRNOTAVAIL: Self = _
pub const ADDRNOTAVAIL: Self = _
EADDRNOTAVAIL
Sourcepub const AFNOSUPPORT: Self = _
pub const AFNOSUPPORT: Self = _
EAFNOSUPPORT
Sourcepub const CONNABORTED: Self = _
pub const CONNABORTED: Self = _
ECONNABORTED
Sourcepub const CONNREFUSED: Self = _
pub const CONNREFUSED: Self = _
ECONNREFUSED
Sourcepub const DESTADDRREQ: Self = _
pub const DESTADDRREQ: Self = _
EDESTADDRREQ
Sourcepub const HOSTUNREACH: Self = _
pub const HOSTUNREACH: Self = _
EHOSTUNREACH
Sourcepub const INPROGRESS: Self = _
pub const INPROGRESS: Self = _
EINPROGRESS
Sourcepub const INTR: Self = _
pub const INTR: Self = _
EINTR
.
For a convenient way to retry system calls that exit with INTR
, use
retry_on_intr
.
Sourcepub const KEYEXPIRED: Self = _
pub const KEYEXPIRED: Self = _
EKEYEXPIRED
Sourcepub const KEYREJECTED: Self = _
pub const KEYREJECTED: Self = _
EKEYREJECTED
Sourcepub const KEYREVOKED: Self = _
pub const KEYREVOKED: Self = _
EKEYREVOKED
Sourcepub const MEDIUMTYPE: Self = _
pub const MEDIUMTYPE: Self = _
EMEDIUMTYPE
Sourcepub const NAMETOOLONG: Self = _
pub const NAMETOOLONG: Self = _
ENAMETOOLONG
Sourcepub const NETUNREACH: Self = _
pub const NETUNREACH: Self = _
ENETUNREACH
Sourcepub const NOPROTOOPT: Self = _
pub const NOPROTOOPT: Self = _
ENOPROTOOPT
Sourcepub const NOTRECOVERABLE: Self = _
pub const NOTRECOVERABLE: Self = _
ENOTRECOVERABLE
Sourcepub const PFNOSUPPORT: Self = _
pub const PFNOSUPPORT: Self = _
EPFNOSUPPORT
Sourcepub const PROTONOSUPPORT: Self = _
pub const PROTONOSUPPORT: Self = _
EPROTONOSUPPORT
Sourcepub const SOCKTNOSUPPORT: Self = _
pub const SOCKTNOSUPPORT: Self = _
ESOCKTNOSUPPORT
Sourcepub const TOOMANYREFS: Self = _
pub const TOOMANYREFS: Self = _
ETOOMANYREFS
Sourcepub const WOULDBLOCK: Self = _
pub const WOULDBLOCK: Self = _
EWOULDBLOCK
Trait Implementations§
Source§impl Error for Errno
impl Error for Errno
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
impl Copy for Errno
impl Eq for Errno
impl StructuralPartialEq for Errno
Auto Trait Implementations§
impl Freeze for Errno
impl RefUnwindSafe for Errno
impl Send for Errno
impl Sync for Errno
impl Unpin for Errno
impl UnwindSafe for Errno
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 2 bytes