pub enum CloseReason {
Expired,
Dismissed,
}Expand description
Why a notification was closed without an explicit user action.
Carried by NotificationResponse::close_reason. A None value means the
user took an active action (clicked the body, pressed a button, or submitted
a reply).
Variants§
Expired
The notification timed out and was removed by this crate.
Produced when the duration set via
Notification::timeout elapses.
Dismissed
The user explicitly dismissed the notification (e.g. swiped it away or pressed “Clear” in Notification Center).
Trait Implementations§
Source§impl Clone for CloseReason
impl Clone for CloseReason
Source§fn clone(&self) -> CloseReason
fn clone(&self) -> CloseReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
Source§fn eq(&self, other: &CloseReason) -> bool
fn eq(&self, other: &CloseReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CloseReason
Auto Trait Implementations§
impl Freeze 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§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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