pub enum OsErrorSource {
Errno,
Win32,
NtStatus,
Sim,
}Expand description
Numbering space of an OsError code.
Variants§
Errno
POSIX errno.
Win32
Win32 GetLastError().
NtStatus
NTSTATUS from an Nt* call (stored as its bit pattern).
Sim
Injected by the simulator.
Trait Implementations§
Source§impl Clone for OsErrorSource
impl Clone for OsErrorSource
Source§fn clone(&self) -> OsErrorSource
fn clone(&self) -> OsErrorSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OsErrorSource
Source§impl Debug for OsErrorSource
impl Debug for OsErrorSource
impl Eq for OsErrorSource
Source§impl PartialEq for OsErrorSource
impl PartialEq for OsErrorSource
impl StructuralPartialEq for OsErrorSource
Auto Trait Implementations§
impl Forget for OsErrorSource
impl Freeze for OsErrorSource
impl Move for OsErrorSource
impl RefUnwindSafe for OsErrorSource
impl Send for OsErrorSource
impl Sync for OsErrorSource
impl Unpin for OsErrorSource
impl UnsafeUnpin for OsErrorSource
impl UnwindSafe for OsErrorSource
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