pub enum NotifyMethod {
Disable,
Log,
Prompt,
Toast,
}Expand description
How to send the user a notification?
Variants§
Disable
Do nothing.
Log
Log in stdout.
Prompt
Prompt using dialog.
Toast
Send system notification, appearing as a toast.
Trait Implementations§
Source§impl Clone for NotifyMethod
impl Clone for NotifyMethod
Source§fn clone(&self) -> NotifyMethod
fn clone(&self) -> NotifyMethod
Returns a duplicate 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 Debug for NotifyMethod
impl Debug for NotifyMethod
Source§impl<'de> Deserialize<'de> for NotifyMethod
impl<'de> Deserialize<'de> for NotifyMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NotifyMethod
impl Display for NotifyMethod
Source§impl PartialEq for NotifyMethod
impl PartialEq for NotifyMethod
Source§impl Sequence for NotifyMethod
impl Sequence for NotifyMethod
Source§impl Serialize for NotifyMethod
impl Serialize for NotifyMethod
Source§impl ValueEnum for NotifyMethod
impl ValueEnum for NotifyMethod
impl Copy for NotifyMethod
impl Eq for NotifyMethod
impl StructuralPartialEq for NotifyMethod
Auto Trait Implementations§
impl Freeze for NotifyMethod
impl RefUnwindSafe for NotifyMethod
impl Send for NotifyMethod
impl Sync for NotifyMethod
impl Unpin for NotifyMethod
impl UnwindSafe for NotifyMethod
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.