pub enum EventResponse {
Continue,
PreventDefault,
}Expand description
Response returned by a lifecycle handler.
Variants§
Continue
Allow the default native behavior to proceed.
PreventDefault
Cancel the default native behavior, for cancellable events only.
Trait Implementations§
Source§impl Clone for EventResponse
impl Clone for EventResponse
impl Copy for EventResponse
Source§impl Debug for EventResponse
impl Debug for EventResponse
Source§impl Default for EventResponse
impl Default for EventResponse
impl Eq for EventResponse
Source§impl PartialEq for EventResponse
impl PartialEq for EventResponse
impl StructuralPartialEq for EventResponse
Auto Trait Implementations§
impl Freeze for EventResponse
impl RefUnwindSafe for EventResponse
impl Send for EventResponse
impl Sync for EventResponse
impl Unpin for EventResponse
impl UnsafeUnpin for EventResponse
impl UnwindSafe for EventResponse
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