#[repr(transparent)]pub struct ToastDismissalReason(pub i32);
Expand description
ToastDismissalReason
is a struct representing the reason a toast notification was dismissed.
Variants:
UserCanceled
: The user explicitly dismissed the toast notification.ApplicationHidden
: The application hid the toast notification programmatically.TimedOut
: The toast notification was dismissed because it timed out.
Tuple Fields§
§0: i32
Implementations§
Source§impl ToastDismissalReason
impl ToastDismissalReason
pub const UserCanceled: ToastDismissalReason = _
pub const ApplicationHidden: ToastDismissalReason = _
pub const TimedOut: ToastDismissalReason = _
Trait Implementations§
Source§impl Clone for ToastDismissalReason
impl Clone for ToastDismissalReason
Source§fn clone(&self) -> ToastDismissalReason
fn clone(&self) -> ToastDismissalReason
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ToastDismissalReason
impl Debug for ToastDismissalReason
Source§impl Default for ToastDismissalReason
impl Default for ToastDismissalReason
Source§fn default() -> ToastDismissalReason
fn default() -> ToastDismissalReason
Returns the “default value” for a type. Read more
Source§impl PartialEq for ToastDismissalReason
impl PartialEq for ToastDismissalReason
impl Copy for ToastDismissalReason
impl Eq for ToastDismissalReason
impl StructuralPartialEq for ToastDismissalReason
Auto Trait Implementations§
impl Freeze for ToastDismissalReason
impl RefUnwindSafe for ToastDismissalReason
impl Send for ToastDismissalReason
impl Sync for ToastDismissalReason
impl Unpin for ToastDismissalReason
impl UnwindSafe for ToastDismissalReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)