Struct redirect::error::WinError
[−]
[src]
pub struct WinError { pub hr: HRESULT, }
an winerror
Fields
hr: HRESULT
Methods
impl WinError
[src]
fn description(&self) -> &'static str
[src]
impl WinError
[src]
fn from_hresult(hr: HRESULT) -> Result<(), WinError>
[src]
construct an error from an HRESULT
fn from_hresult_or_ok<F, T>(hr: HRESULT, f: F) -> Result<T, WinError> where
F: FnOnce() -> T,
[src]
F: FnOnce() -> T,
construct an Result
from an HRESULT
and a closure
Trait Implementations
impl Copy for WinError
[src]
impl Clone for WinError
[src]
fn clone(&self) -> WinError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for WinError
[src]
fn eq(&self, __arg_0: &WinError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &WinError) -> bool
[src]
This method tests for !=
.