pub enum CloseReason {
Expired,
Dismissed,
DBusCall,
Other,
}Expand description
A reason why the notification is closed.
Variants§
Expired
Expired timeout. The notification was closed automatically upon expiration of the timeout.
Dismissed
Dismissed by the user.
Generated by a call to crate::NotificationService::dismiss_notification
and crate::NotificationHandle::dismiss
DBusCall
The application requested to close the notification.
Other
Undefined/reserved reasons.
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
Source§impl From<CloseReason> for u32
impl From<CloseReason> for u32
Source§fn from(value: CloseReason) -> Self
fn from(value: CloseReason) -> Self
Converts to this type from the input type.
Source§impl From<u32> for CloseReason
impl From<u32> for CloseReason
Source§impl PartialEq for CloseReason
impl PartialEq for CloseReason
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§
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