pub enum MessageClass {
Success,
Info,
Warning,
Error,
Progress,
}Expand description
Classification of status messages for routing to toast overlay vs footer.
Five levels: Success / Info / Warning / Error / Progress. Severity rises from Info to Error. Toast vs footer routing follows attention-urgency: Success, Warning and Error draw the eye via toast; Info and Progress sit in the footer for passive consumption.
Variants§
Success
User action succeeded (copy, sort, delete). Toast, length-proportional timeout.
Color: green \u{2713}.
Info
Background event (sync complete, config reload). Footer, length-proportional timeout. Color: muted.
Warning
Caution or degraded state (stale hosts, deprecated config,
validation failure, empty-state notice). Toast, length-proportional
timeout (longer than Success). Auto-expires.
Color: yellow \u{26A0}.
Error
Error condition requiring acknowledgement. Toast, sticky by default
so the user cannot miss it. Cleared by next user action.
Color: red \u{2716}.
Progress
Long-running operation with spinner. Footer, sticky. Color: muted with spinner.
Trait Implementations§
Source§impl Clone for MessageClass
impl Clone for MessageClass
Source§fn clone(&self) -> MessageClass
fn clone(&self) -> MessageClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessageClass
impl Debug for MessageClass
Source§impl PartialEq for MessageClass
impl PartialEq for MessageClass
Source§fn eq(&self, other: &MessageClass) -> bool
fn eq(&self, other: &MessageClass) -> bool
self and other values to be equal, and is used by ==.impl Copy for MessageClass
impl Eq for MessageClass
impl StructuralPartialEq for MessageClass
Auto Trait Implementations§
impl Freeze for MessageClass
impl RefUnwindSafe for MessageClass
impl Send for MessageClass
impl Sync for MessageClass
impl Unpin for MessageClass
impl UnsafeUnpin for MessageClass
impl UnwindSafe for MessageClass
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
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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more