Struct windows_error::WindowsError
[−]
[src]
pub struct WindowsError(_);
Represents Windows error code.
Methods
impl WindowsError
[src]
fn new(errno: u32) -> WindowsError
Constructs new error.
fn from_last_err() -> WindowsError
Constructs new error from last happened one via GetLastError
call.
fn errno(&self) -> u32
Returns underlying error code.
fn errno_desc(&self) -> String
Returns description of underlying error code.
Trait Implementations
impl Clone for WindowsError
[src]
fn clone(&self) -> WindowsError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for WindowsError
[src]
impl Display for WindowsError
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for WindowsError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl PartialEq for WindowsError
[src]
fn eq(&self, right: &WindowsError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, right: &WindowsError) -> bool
This method tests for !=
.
impl From<u32> for WindowsError
[src]
impl Into<u32> for WindowsError
[src]
impl PartialEq<u32> for WindowsError
[src]
fn eq(&self, right: &u32) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, right: &u32) -> bool
This method tests for !=
.
impl From<u16> for WindowsError
[src]
impl Into<u16> for WindowsError
[src]
impl PartialEq<u16> for WindowsError
[src]
fn eq(&self, right: &u16) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, right: &u16) -> bool
This method tests for !=
.
impl From<u8> for WindowsError
[src]
impl Into<u8> for WindowsError
[src]
impl PartialEq<u8> for WindowsError
[src]
fn eq(&self, right: &u8) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, right: &u8) -> bool
This method tests for !=
.
impl From<usize> for WindowsError
[src]
impl Into<usize> for WindowsError
[src]
impl PartialEq<usize> for WindowsError
[src]
fn eq(&self, right: &usize) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, right: &usize) -> bool
This method tests for !=
.
impl From<i32> for WindowsError
[src]
impl Into<i32> for WindowsError
[src]
impl PartialEq<i32> for WindowsError
[src]
fn eq(&self, right: &i32) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, right: &i32) -> bool
This method tests for !=
.
impl From<i16> for WindowsError
[src]
impl Into<i16> for WindowsError
[src]
impl PartialEq<i16> for WindowsError
[src]
fn eq(&self, right: &i16) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, right: &i16) -> bool
This method tests for !=
.
impl From<i8> for WindowsError
[src]
impl Into<i8> for WindowsError
[src]
impl PartialEq<i8> for WindowsError
[src]
fn eq(&self, right: &i8) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, right: &i8) -> bool
This method tests for !=
.