#[non_exhaustive]pub enum WinToastError {
Os(Error),
Io(Error),
InvalidPath,
InvalidDismissalReason,
Unknown,
}Expand description
The error type used in this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Os(Error)
External error from the Windows API.
Io(Error)
Error from the Windows Runtime.
InvalidPath
The given path is not absolute, and therefore cannot be converted to a URL.
InvalidDismissalReason
The dismissal reason from OS is unknown
Unknown
The toast is not initialized properly.
Trait Implementations§
Source§impl Debug for WinToastError
impl Debug for WinToastError
Source§impl Display for WinToastError
impl Display for WinToastError
Source§impl Error for WinToastError
impl Error for WinToastError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<Error> for WinToastError
impl From<Error> for WinToastError
Auto Trait Implementations§
impl Freeze for WinToastError
impl !RefUnwindSafe for WinToastError
impl Send for WinToastError
impl Sync for WinToastError
impl Unpin for WinToastError
impl !UnwindSafe for WinToastError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more