pub enum ModalCloseBehavior {
ClickOutside,
EscapeKey,
EscapeOrClickOutside,
Manual,
}Expand description
How a presented modal can be closed by framework-managed interactions.
Variants§
ClickOutside
Close when clicking outside the modal surface.
EscapeKey
Close when pressing Escape.
EscapeOrClickOutside
Close on either Escape or an outside click.
Manual
Only close through explicit application logic.
Trait Implementations§
Source§impl Clone for ModalCloseBehavior
impl Clone for ModalCloseBehavior
Source§fn clone(&self) -> ModalCloseBehavior
fn clone(&self) -> ModalCloseBehavior
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModalCloseBehavior
Source§impl Debug for ModalCloseBehavior
impl Debug for ModalCloseBehavior
Source§impl Default for ModalCloseBehavior
impl Default for ModalCloseBehavior
Source§fn default() -> ModalCloseBehavior
fn default() -> ModalCloseBehavior
Returns the “default value” for a type. Read more
impl Eq for ModalCloseBehavior
Source§impl PartialEq for ModalCloseBehavior
impl PartialEq for ModalCloseBehavior
impl StructuralPartialEq for ModalCloseBehavior
Auto Trait Implementations§
impl Freeze for ModalCloseBehavior
impl RefUnwindSafe for ModalCloseBehavior
impl Send for ModalCloseBehavior
impl Sync for ModalCloseBehavior
impl Unpin for ModalCloseBehavior
impl UnsafeUnpin for ModalCloseBehavior
impl UnwindSafe for ModalCloseBehavior
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