Struct Errno
#[repr(transparent)]pub struct Errno(u16);Expand description
Tuple Fields§
§0: u16Implementations§
§impl Errno
impl Errno
pub fn from_io_error(io_err: &Error) -> Option<Errno>
Available on crate feature std only.
pub fn from_io_error(io_err: &Error) -> Option<Errno>
std only.Extract an Errno value from a std::io::Error.
This isn’t a From conversion because it’s expected to be relatively
uncommon.
pub const fn raw_os_error(self) -> i32
pub const fn raw_os_error(self) -> i32
Extract the raw OS error number from this error.
pub const fn from_raw_os_error(raw: i32) -> Errno
pub const fn from_raw_os_error(raw: i32) -> Errno
Construct an Errno from a raw OS error number.
§impl Errno
impl Errno
pub const ADDRNOTAVAIL: Errno
pub const ADDRNOTAVAIL: Errno
EADDRNOTAVAIL
pub const AFNOSUPPORT: Errno
pub const AFNOSUPPORT: Errno
EAFNOSUPPORT
pub const CONNABORTED: Errno
pub const CONNABORTED: Errno
ECONNABORTED
pub const CONNREFUSED: Errno
pub const CONNREFUSED: Errno
ECONNREFUSED
pub const DESTADDRREQ: Errno
pub const DESTADDRREQ: Errno
EDESTADDRREQ
pub const HOSTUNREACH: Errno
pub const HOSTUNREACH: Errno
EHOSTUNREACH
pub const INPROGRESS: Errno
pub const INPROGRESS: Errno
EINPROGRESS
pub const INTR: Errno
pub const INTR: Errno
EINTR
For a convenient way to retry system calls that exit with INTR, use
retry_on_intr.
pub const KEYEXPIRED: Errno
pub const KEYEXPIRED: Errno
EKEYEXPIRED
pub const KEYREJECTED: Errno
pub const KEYREJECTED: Errno
EKEYREJECTED
pub const KEYREVOKED: Errno
pub const KEYREVOKED: Errno
EKEYREVOKED
pub const MEDIUMTYPE: Errno
pub const MEDIUMTYPE: Errno
EMEDIUMTYPE
pub const NAMETOOLONG: Errno
pub const NAMETOOLONG: Errno
ENAMETOOLONG
pub const NETUNREACH: Errno
pub const NETUNREACH: Errno
ENETUNREACH
pub const NOPROTOOPT: Errno
pub const NOPROTOOPT: Errno
ENOPROTOOPT
pub const NOTRECOVERABLE: Errno
pub const NOTRECOVERABLE: Errno
ENOTRECOVERABLE
pub const PFNOSUPPORT: Errno
pub const PFNOSUPPORT: Errno
EPFNOSUPPORT
pub const PROTONOSUPPORT: Errno
pub const PROTONOSUPPORT: Errno
EPROTONOSUPPORT
pub const SOCKTNOSUPPORT: Errno
pub const SOCKTNOSUPPORT: Errno
ESOCKTNOSUPPORT
pub const TOOMANYREFS: Errno
pub const TOOMANYREFS: Errno
ETOOMANYREFS
pub const WOULDBLOCK: Errno
pub const WOULDBLOCK: Errno
EWOULDBLOCK
Trait Implementations§
impl Copy for Errno
impl Eq for Errno
§impl Error for Errno
Available on error_in_core or crate feature std only.
impl Error for Errno
Available on
error_in_core or crate feature std only.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()
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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more