pub enum ToastState {
Appear,
Disappear,
Disappeared,
Idle,
}Expand description
State of the toast
Variants§
Appear
Toast is appearing
Disappear
Toast is disappearing
Disappeared
Toast has disappeared
Idle
Toast is idling
Implementations§
Source§impl ToastState
impl ToastState
Sourcepub const fn disappearing(&self) -> bool
pub const fn disappearing(&self) -> bool
Returns true if the toast is disappearing
Sourcepub const fn disappeared(&self) -> bool
pub const fn disappeared(&self) -> bool
Returns true if the toast has disappeared
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToastState
impl RefUnwindSafe for ToastState
impl Send for ToastState
impl Sync for ToastState
impl Unpin for ToastState
impl UnsafeUnpin for ToastState
impl UnwindSafe for ToastState
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