Struct winrt_notification::Error [−]
pub struct Error { /* fields omitted */ }
Expand description
A WinRT error object consists of both an error code as well as detailed error information for debugging.
Implementations
impl Error
impl Error
This creates a new WinRT error object, capturing the stack and other information about the point of failure.
pub fn from_win32() -> Error
pub const fn code(&self) -> HRESULT
pub const fn code(&self) -> HRESULT
The error code describing the error.
The error information describing the error.
pub fn win32_error(&self) -> Option<u32>
pub fn win32_error(&self) -> Option<u32>
Returns the win32 error code if the underlying HRESULT’s facility is win32
Trait Implementations
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more