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§
Debug
Diagnostic information for developers. Lower priority than Info,
styled distinctly so that diagnostic noise can be visually separated
(or filtered out) without changing intent at every call site.
Info
Neutral information.
Success
A positive outcome — completed action, saved file, sent message.
Warning
Something the user should notice but is not an error.
Error
A failure. Often paired with ToastLifetime::Persistent so the
user must acknowledge before the toast disappears.
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 moreimpl Copy for ToastIntent
Source§impl Debug for ToastIntent
impl Debug for ToastIntent
Source§impl Display for ToastIntent
impl Display for ToastIntent
impl Eq for ToastIntent
Source§impl Hash for ToastIntent
impl Hash for ToastIntent
Source§impl PartialEq for ToastIntent
impl PartialEq 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