pub struct Errno(/* private fields */);Expand description
A positive operating-system error number.
Implementations§
Source§impl Errno
impl Errno
pub const BAD_DESCRIPTOR: Self
pub const CANCELED: Self
pub const IN_PROGRESS: Self
pub const NO_BUFFER_SPACE: Self
pub const ALREADY_EXISTS: Self
pub const PROTOCOL: Self
pub const TOO_MANY_FILES: Self
pub const INTERRUPTED: Self
pub const NOT_FOUND: Self
pub const NOT_DIRECTORY: Self
pub const SYMLINK_LOOP: Self
pub const NAME_TOO_LONG: Self
pub const INVALID_ARGUMENT: Self
pub const fn code(self) -> NonZero<i32>
pub const fn is_intr(self) -> bool
pub const fn is_canceled(self) -> bool
pub const fn is_block(self) -> bool
pub const fn is_refused(self) -> bool
pub const fn is_pipe(self) -> bool
pub const fn is_reset(self) -> bool
pub const fn is_aborted(self) -> bool
pub const fn is_not_connected(self) -> bool
pub const fn is_not_found(self) -> bool
Trait Implementations§
impl Copy for Errno
impl Eq for Errno
Source§impl<S> From<Errno> for Diagnostic<S>
impl<S> From<Errno> for Diagnostic<S>
impl StructuralPartialEq for Errno
Auto Trait Implementations§
impl Forget for Errno
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