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§
source§impl Clone for CloseReason
impl Clone for CloseReason
source§fn clone(&self) -> CloseReason
fn clone(&self) -> CloseReason
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F> CloseHandler<CloseReason> for Fwhere
F: Fn(CloseReason),
impl<F> CloseHandler<CloseReason> for Fwhere
F: Fn(CloseReason),
source§fn call(&self, reason: CloseReason)
fn call(&self, reason: CloseReason)
This is called with the
CloseReason
.