Enum notify_rust::CloseReason
source · [−]pub enum CloseReason {
Expired,
Dismissed,
CloseAction,
Other(u32),
}
Expand description
Reased passed to NotificationClosed
Signal
Specification
As listed under Table 8. NotificationClosed
Parameters
Variants
Expired
The notification expired
Dismissed
The notification was dismissed by the user
CloseAction
The notification was closed by a call to CloseNotification
Other(u32)
Undefined/Reserved reason
Trait Implementations
sourceimpl Clone for CloseReason
impl Clone for CloseReason
sourcefn clone(&self) -> CloseReason
fn clone(&self) -> CloseReason
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<F> CloseHandler<CloseReason> for Fwhere
F: Fn(CloseReason),
impl<F> CloseHandler<CloseReason> for Fwhere
F: Fn(CloseReason),
sourcefn call(&self, reason: CloseReason)
fn call(&self, reason: CloseReason)
This is called with the
CloseReason
.sourceimpl Debug for CloseReason
impl Debug for CloseReason
sourceimpl From<u32> for CloseReason
impl From<u32> for CloseReason
impl Copy for CloseReason
Auto Trait Implementations
impl RefUnwindSafe for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnwindSafe for CloseReason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more