pub struct Error { /* private fields */ }
Expand description
An error object consists of both an error code as well as detailed error information for debugging.
Implementations§
§impl Error
impl Error
pub const OK: Self = _
pub const OK: Self = _
An error object without any failure information.
pub fn new(code: HRESULT, message: HSTRING) -> Self
pub fn new(code: HRESULT, message: HSTRING) -> Self
This creates a new WinRT error object, capturing the stack and other information about the point of failure.
pub fn from_win32() -> Self
Trait Implementations§
§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl From<Infallible> for Error
impl From<Infallible> for Error
§fn from(from: Infallible) -> Self
fn from(from: Infallible) -> Self
Converts to this type from the input type.
§impl From<WIN32_ERROR> for Error
impl From<WIN32_ERROR> for Error
§fn from(value: WIN32_ERROR) -> Self
fn from(value: WIN32_ERROR) -> Self
Converts to this type from the input type.