pub enum ToastEvent {
None,
Dismissed,
Action(String),
FocusChanged,
}Expand description
Result of handling a toast interaction event.
Returned by Toast::handle_key to indicate what happened.
Variants§
None
No interaction occurred (key not consumed).
Dismissed
The toast was dismissed.
Action(String)
An action button was invoked. Contains the action ID.
FocusChanged
Focus moved between action buttons.
Trait Implementations§
Source§impl Clone for ToastEvent
impl Clone for ToastEvent
Source§fn clone(&self) -> ToastEvent
fn clone(&self) -> ToastEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ToastEvent
impl Debug for ToastEvent
Source§impl PartialEq for ToastEvent
impl PartialEq for ToastEvent
impl Eq for ToastEvent
impl StructuralPartialEq for ToastEvent
Auto Trait Implementations§
impl Freeze for ToastEvent
impl RefUnwindSafe for ToastEvent
impl Send for ToastEvent
impl Sync for ToastEvent
impl Unpin for ToastEvent
impl UnwindSafe for ToastEvent
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
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
Compare self to
key and return true if they are equal.