pub enum ToastIntent {
Debug,
Info,
Success,
Warning,
Error,
}Expand description
Semantic intent of a notification.
Engines map intents to colors using the current theme. Debug is kept
intentionally separate from Info so that diagnostic noise can be styled
distinctly (or suppressed) without changing intent at every call site.
Variants§
Trait Implementations§
Source§impl Clone for ToastIntent
impl Clone for ToastIntent
Source§fn clone(&self) -> ToastIntent
fn clone(&self) -> ToastIntent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToastIntent
impl Debug for ToastIntent
Source§impl Display for ToastIntent
impl Display for ToastIntent
Source§impl Hash for ToastIntent
impl Hash for ToastIntent
Source§impl PartialEq for ToastIntent
impl PartialEq for ToastIntent
Source§fn eq(&self, other: &ToastIntent) -> bool
fn eq(&self, other: &ToastIntent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ToastIntent
impl Eq for ToastIntent
impl StructuralPartialEq for ToastIntent
Auto Trait Implementations§
impl Freeze for ToastIntent
impl RefUnwindSafe for ToastIntent
impl Send for ToastIntent
impl Sync for ToastIntent
impl Unpin for ToastIntent
impl UnsafeUnpin for ToastIntent
impl UnwindSafe for ToastIntent
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