pub struct Errno(pub i32);Expand description
Wraps a platform-specific error code.
The Display instance maps the code to a human-readable string. It
calls strerror_r under POSIX, and FormatMessageW on
Windows.
Tuple Fields§
§0: i32Trait Implementations§
Source§impl Error for Errno
Available on crate feature std only.
impl Error for Errno
Available on crate feature
std only.Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl Ord for Errno
impl Ord for Errno
Source§impl PartialOrd for Errno
impl PartialOrd for Errno
impl Copy for Errno
impl Eq for Errno
impl StructuralPartialEq for Errno
Auto Trait Implementations§
impl Freeze for Errno
impl RefUnwindSafe for Errno
impl Send for Errno
impl Sync for Errno
impl Unpin 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