pub enum PlatformErrorCode {
Linux(i32),
Windows(u32),
Darwin(i32),
}Expand description
A platform-tagged raw error code.
Linux errno is a signed i32, Windows error codes are an unsigned
DWORD (u32); collapsing both into one untyped integer would either
truncate one of them or imply the two are comparable, which they are
not.
Variants§
Trait Implementations§
Source§impl Clone for PlatformErrorCode
impl Clone for PlatformErrorCode
Source§fn clone(&self) -> PlatformErrorCode
fn clone(&self) -> PlatformErrorCode
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 PlatformErrorCode
Source§impl Debug for PlatformErrorCode
impl Debug for PlatformErrorCode
impl Eq for PlatformErrorCode
Source§impl PartialEq for PlatformErrorCode
impl PartialEq for PlatformErrorCode
impl StructuralPartialEq for PlatformErrorCode
Auto Trait Implementations§
impl Freeze for PlatformErrorCode
impl RefUnwindSafe for PlatformErrorCode
impl Send for PlatformErrorCode
impl Sync for PlatformErrorCode
impl Unpin for PlatformErrorCode
impl UnsafeUnpin for PlatformErrorCode
impl UnwindSafe for PlatformErrorCode
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