pub enum DismissBehavior {
ClickOutside,
EscapeKey,
EscapeOrClickOutside,
PointerLeave {
delay: Duration,
},
Manual,
}Expand description
When an overlay is dismissed.
Variants§
ClickOutside
Dismiss when the user clicks outside the overlay.
EscapeKey
Dismiss when the user presses Escape.
EscapeOrClickOutside
Dismiss on either Escape or an outside click.
PointerLeave
Dismiss when the pointer leaves both anchor and overlay.
Manual
Dismiss only via explicit API call.
Trait Implementations§
Source§impl Clone for DismissBehavior
impl Clone for DismissBehavior
Source§fn clone(&self) -> DismissBehavior
fn clone(&self) -> DismissBehavior
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 moreAuto Trait Implementations§
impl Freeze for DismissBehavior
impl RefUnwindSafe for DismissBehavior
impl Send for DismissBehavior
impl Sync for DismissBehavior
impl Unpin for DismissBehavior
impl UnsafeUnpin for DismissBehavior
impl UnwindSafe for DismissBehavior
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