pub struct Win32Error(/* private fields */);
Expand description
A wrapper over Win32 API errors.
Implements Display
using FormatMessageW
.
Implementations§
Trait Implementations§
Source§impl Clone for Win32Error
impl Clone for Win32Error
Source§fn clone(&self) -> Win32Error
fn clone(&self) -> Win32Error
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Win32Error
impl Debug for Win32Error
Source§impl Display for Win32Error
impl Display for Win32Error
Source§impl Error for Win32Error
impl Error for Win32Error
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Win32Error> for Error
impl From<Win32Error> for Error
Source§fn from(err: Win32Error) -> Self
fn from(err: Win32Error) -> Self
Converts to this type from the input type.
Source§impl From<Win32Error> for DWORD
impl From<Win32Error> for DWORD
Source§fn from(other: Win32Error) -> Self
fn from(other: Win32Error) -> Self
Converts to this type from the input type.
Source§impl From<u32> for Win32Error
impl From<u32> for Win32Error
Source§impl Hash for Win32Error
impl Hash for Win32Error
Source§impl Ord for Win32Error
impl Ord for Win32Error
Source§fn cmp(&self, other: &Win32Error) -> Ordering
fn cmp(&self, other: &Win32Error) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Win32Error
impl PartialEq for Win32Error
Source§impl PartialOrd for Win32Error
impl PartialOrd for Win32Error
Source§impl TryFrom<Error> for Win32Error
impl TryFrom<Error> for Win32Error
impl Copy for Win32Error
impl Eq for Win32Error
impl StructuralPartialEq for Win32Error
Auto Trait Implementations§
impl Freeze for Win32Error
impl RefUnwindSafe for Win32Error
impl Send for Win32Error
impl Sync for Win32Error
impl Unpin for Win32Error
impl UnwindSafe for Win32Error
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