pub struct OsError(/* private fields */);
Expand description
Error type of OsRng
Implementations§
Source§impl OsError
impl OsError
Sourcepub fn raw_os_error(self) -> Option<i32>
pub fn raw_os_error(self) -> Option<i32>
Extract the raw OS error code (if this error came from the OS)
This method is identical to std::io::Error::raw_os_error()
, except
that it works in no_std
contexts. If this method returns None
, the
error value can still be formatted via the Display
implementation.
Trait Implementations§
Source§impl Error for OsError
impl Error for OsError
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 OsError
impl Eq for OsError
impl StructuralPartialEq for OsError
Auto Trait Implementations§
impl Freeze for OsError
impl RefUnwindSafe for OsError
impl Send for OsError
impl Sync for OsError
impl Unpin for OsError
impl UnwindSafe for OsError
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