pub struct Error(/* private fields */);
Expand description
Wraps a Linux error code in a strongly-typed struct.
Implementations§
Source§impl Error
impl Error
pub const EPERM: Self
pub const ENOENT: Self
pub const ESRCH: Self
pub const EINTR: Self
pub const EIO: Self
pub const ENXIO: Self
pub const E2BIG: Self
pub const ENOEXEC: Self
pub const EBADF: Self
pub const ECHILD: Self
pub const EAGAIN: Self
pub const ENOMEM: Self
pub const EACCES: Self
pub const EFAULT: Self
pub const EBUSY: Self
pub const EEXIST: Self
pub const EXDEV: Self
pub const ENODEV: Self
pub const ENOTDIR: Self
pub const EISDIR: Self
pub const EINVAL: Self
pub const ENFILE: Self
pub const EMFILE: Self
pub const ENOTTY: Self
pub const EFBIG: Self
pub const ENOSPC: Self
pub const ESPIPE: Self
pub const EROFS: Self
pub const EMLINK: Self
pub const EPIPE: Self
pub const ERANGE: Self
pub const EDEADLK: Self
pub const ENAMETOOLONG: Self
pub const ENOLCK: Self
pub const ENOSYS: Self
pub const ENOTEMPTY: Self
pub const ELOOP: Self
pub const EIDRM: Self
pub const ENODATA: Self
pub const EPROTO: Self
pub const EOVERFLOW: Self
pub const EUSERS: Self
pub const ENOTSOCK: Self
pub const EDESTADDRREQ: Self
pub const EMSGSIZE: Self
pub const EPROTOTYPE: Self
pub const ENOPROTOOPT: Self
pub const EPROTONOSUPPORT: Self
pub const ESOCKTNOSUPPORT: Self
pub const ENOTSUP: Self
pub const EAFNOSUPPORT: Self
pub const EADDRINUSE: Self
pub const EADDRNOTAVAIL: Self
pub const ENETUNREACH: Self
pub const ECONNABORTED: Self
pub const ECONNRESET: Self
pub const ENOBUFS: Self
pub const EISCONN: Self
pub const ENOTCONN: Self
pub const ETIMEDOUT: Self
pub const ECONNREFUSED: Self
pub const EHOSTDOWN: Self
pub const EHOSTUNREACH: Self
pub const EALREADY: Self
pub const EINPROGRESS: Self
pub const ENOMEDIUM: Self
pub const EMEDIUMTYPE: Self
pub const ENOKEY: Self
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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