pub enum ClosedReason {
Unset,
Expired,
Dismissed,
ApiRequest,
Undefined,
Invalid,
}Expand description
Reason why notification was closed. Refer to libnotify docs
Variants§
Unset
Notification not closed
Expired
Timeout has expired
Dismissed
It has been dismissed by the user
ApiRequest
It has been closed by a call to notify_notification_close()
Undefined
Closed by undefined/reserved reasons
Invalid
This variant is returned only if libnotify returns some weird enum value, which should never happen
Trait Implementations§
Source§impl Clone for ClosedReason
impl Clone for ClosedReason
Source§fn clone(&self) -> ClosedReason
fn clone(&self) -> ClosedReason
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 ClosedReason
Auto Trait Implementations§
impl Freeze for ClosedReason
impl RefUnwindSafe for ClosedReason
impl Send for ClosedReason
impl Sync for ClosedReason
impl Unpin for ClosedReason
impl UnsafeUnpin for ClosedReason
impl UnwindSafe for ClosedReason
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