#[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
EADDRNOTAVAIL
EAFNOSUPPORT
ECONNABORTED
ECONNREFUSED
EDESTADDRREQ
EHOSTUNREACH
EINPROGRESS
EINTR
For a convenient way to retry system calls that exit with INTR
, use
with_retrying
.
ENAMETOOLONG
ENETUNREACH
ENOPROTOOPT
ENOTRECOVERABLE
EPFNOSUPPORT
EPROCUNAVAIL
EPROGMISMATCH
EPROGUNAVAIL
EPROTONOSUPPORT
ERPCMISMATCH
ESOCKTNOSUPPORT
ETOOMANYREFS
EWOULDBLOCK
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more