Struct winput::WindowsError [−][src]
pub struct WindowsError { /* fields omitted */ }
Represents a Windows error.
Implementations
impl WindowsError
[src]
impl WindowsError
[src]pub fn from_last_error() -> Self
[src]
Creates a new WindowsError
using the last error code retreived using the
native GetLastError
function.
Example
ⓘ
use winput::WindowsError; let error = WindowsError::from_last_error(); println!("{:?}", &error.description);
pub fn from_error_code(error_code: u32) -> Self
[src]
Creates a new WindowsError
using the given error code. The description of the
error is retreived using the native FormatMessageW
function.
Example
ⓘ
use winput::WindowsError; let error = WindowsError::from_error_code(101); println!("{:?}", &error.description);
Trait Implementations
impl Clone for WindowsError
[src]
impl Clone for WindowsError
[src]fn clone(&self) -> WindowsError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for WindowsError
impl RefUnwindSafe for WindowsError
impl Send for WindowsError
impl Send for WindowsError
impl Sync for WindowsError
impl Sync for WindowsError
impl Unpin for WindowsError
impl Unpin for WindowsError
impl UnwindSafe for WindowsError
impl UnwindSafe for WindowsError