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 more
sourceimpl<F> CloseHandler<CloseReason> for F where
F: Fn(CloseReason),
impl<F> CloseHandler<CloseReason> for F where
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more