Enum notify_rust::CloseReason
source · pub enum CloseReason {
Expired,
Dismissed,
CloseAction,
Other(u32),
}
Expand description
Reason 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
.source§impl Debug for CloseReason
impl Debug for CloseReason
source§impl From<u32> for CloseReason
impl From<u32> for CloseReason
impl Copy 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)