pub struct ToastMessage {
pub text: String,
pub level: ToastLevel,
pub created_tick: u64,
pub duration_ticks: u64,
}Expand description
A single toast notification message.
Fields§
§text: StringThe text content of the notification.
level: ToastLevelSeverity level, used to choose the display color.
created_tick: u64The tick at which this message was created.
duration_ticks: u64How many ticks the message remains visible.
Auto Trait Implementations§
impl Freeze for ToastMessage
impl RefUnwindSafe for ToastMessage
impl Send for ToastMessage
impl Sync for ToastMessage
impl Unpin for ToastMessage
impl UnsafeUnpin for ToastMessage
impl UnwindSafe for ToastMessage
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