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 (const: unstable) · 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
Available on crate feature std only.
impl Error for Win32Error
Available on crate feature
std only.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
Available on crate feature std only.
impl From<Win32Error> for Error
Available on crate feature
std only.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 (const: unstable) · 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§fn eq(&self, other: &Win32Error) -> bool
fn eq(&self, other: &Win32Error) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Win32Error
impl PartialOrd for Win32Error
Source§impl TryFrom<Error> for Win32Error
Available on crate feature std only.
impl TryFrom<Error> for Win32Error
Available on crate feature
std only.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 UnsafeUnpin 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