#[repr(transparent)]pub struct Error(_);
Expand description
The error type for rustix
APIs.
This is similar to std::io::Error
, but only holds an OS error code,
and no extra error value.
Implementations
Extract an Error
value from a std::io::Error
.
This isn’t a From
conversion because it’s expected to be relatively
uncommon.
Extract the raw OS error number from this error.
Construct an Error
from a raw OS error number.
EADDRNOTAVAIL
EAFNOSUPPORT
ECONNABORTED
ECONNREFUSED
EDESTADDRREQ
EHOSTUNREACH
EINPROGRESS
EINTR
.
For a convenient way to retry system calls that exit with INTR
, use
with_retrying
.
EKEYEXPIRED
EKEYREJECTED
EKEYREVOKED
EMEDIUMTYPE
ENAMETOOLONG
ENETUNREACH
ENOPROTOOPT
ENOTRECOVERABLE
EPFNOSUPPORT
EPROTONOSUPPORT
ESOCKTNOSUPPORT
ETOOMANYREFS
EWOULDBLOCK
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more