pub struct SystemError {
pub code: u32,
pub message: &'static str,
}Expand description
WIN32 错误
Fields§
§code: u32§message: &'static strImplementations§
Source§impl SystemError
impl SystemError
pub fn new(code: u32) -> SystemError
Trait Implementations§
Source§impl Clone for SystemError
impl Clone for SystemError
Source§fn clone(&self) -> SystemError
fn clone(&self) -> SystemError
Returns a copy 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 SystemError
impl Debug for SystemError
Source§impl Display for SystemError
impl Display for SystemError
Source§impl Error for SystemError
impl Error for SystemError
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 Hash for SystemError
impl Hash for SystemError
Source§impl Ord for SystemError
impl Ord for SystemError
Source§fn cmp(&self, other: &SystemError) -> Ordering
fn cmp(&self, other: &SystemError) -> 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 SystemError
impl PartialEq for SystemError
Source§impl PartialOrd for SystemError
impl PartialOrd for SystemError
impl Copy for SystemError
impl Eq for SystemError
impl StructuralPartialEq for SystemError
Auto Trait Implementations§
impl Freeze for SystemError
impl RefUnwindSafe for SystemError
impl Send for SystemError
impl Sync for SystemError
impl Unpin for SystemError
impl UnwindSafe for SystemError
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