pub enum CloseReason {
Expired,
Dismissed,
CloseRequested,
}Expand description
Why a notification closed, from Notifications::on_closed. Its app
hears the same in NotificationClosed.
Variants§
Expired
It went by itself: a transient one’s popup timed out, or it was the oldest when the history was full.
Dismissed
The user dismissed it, cleared them all, or picked one of its actions.
CloseRequested
Its app took it back.
Trait Implementations§
Source§impl Clone for CloseReason
impl Clone for CloseReason
impl Copy for CloseReason
Source§impl Debug for CloseReason
impl Debug for CloseReason
impl Eq for CloseReason
Source§impl PartialEq for CloseReason
impl PartialEq for CloseReason
impl StructuralPartialEq for CloseReason
Auto Trait Implementations§
impl Forget for CloseReason
impl Freeze for CloseReason
impl Move for CloseReason
impl RefUnwindSafe for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnsafeUnpin for CloseReason
impl UnwindSafe for CloseReason
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