pub enum ModalAction {
Close,
BackdropClicked,
EscapePressed,
}Expand description
Modal action emitted by ModalState::handle_event.
Variants§
Close
The modal should close.
BackdropClicked
Backdrop was clicked.
EscapePressed
Escape was pressed.
Trait Implementations§
Source§impl Clone for ModalAction
impl Clone for ModalAction
Source§fn clone(&self) -> ModalAction
fn clone(&self) -> ModalAction
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 ModalAction
impl Debug for ModalAction
Source§impl PartialEq for ModalAction
impl PartialEq for ModalAction
impl Copy for ModalAction
impl Eq for ModalAction
impl StructuralPartialEq for ModalAction
Auto Trait Implementations§
impl Freeze for ModalAction
impl RefUnwindSafe for ModalAction
impl Send for ModalAction
impl Sync for ModalAction
impl Unpin for ModalAction
impl UnsafeUnpin for ModalAction
impl UnwindSafe for ModalAction
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.