Struct Errno
struct Errno(_)
errno—An error code.
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.
References
Implementations
impl Errno
fn from_io_error(io_err: &Error) -> Option<Self>Extract an
Errnovalue from astd::io::Error.This isn't a
Fromconversion because it's expected to be relatively uncommon.const fn raw_os_error(self: Self) -> i32Extract the raw OS error number from this error.
const fn from_raw_os_error(raw: i32) -> SelfConstruct an
Errnofrom a raw OS error number.
impl Errno
impl Errno
fn kind(self: Self) -> ErrorKindShorthand for
std::io::Error::from(self).kind().
impl Clone for Errno
fn clone(self: &Self) -> Errno
impl Copy for Errno
impl Debug for Errno
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Display for Errno
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for Errno
impl Error for Errno
impl Freeze for Errno
impl Hash for Errno
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl PartialEq for Errno
fn eq(self: &Self, other: &Errno) -> bool
impl RefUnwindSafe for Errno
impl Send for Errno
impl StructuralPartialEq for Errno
impl Sync for Errno
impl Unpin for Errno
impl UnsafeUnpin for Errno
impl UnwindSafe for Errno
impl<T> Any for Errno
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Errno
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Errno
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Errno
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Errno
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Errno
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> ToString for Errno
fn to_string(self: &Self) -> String
impl<T, U> Into for Errno
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Errno
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Errno
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>