Enum gloo_events::EventListenerPhase
source · pub enum EventListenerPhase {
Bubble,
Capture,
}
Expand description
Specifies whether the event listener is run during the capture or bubble phase.
The official specification has a good explanation of capturing vs bubbling.
Default
EventListenerPhase::Bubble
Variants§
Trait Implementations§
source§impl Clone for EventListenerPhase
impl Clone for EventListenerPhase
source§fn clone(&self) -> EventListenerPhase
fn clone(&self) -> EventListenerPhase
Returns a copy 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 EventListenerPhase
impl Debug for EventListenerPhase
source§impl Default for EventListenerPhase
impl Default for EventListenerPhase
source§fn default() -> EventListenerPhase
fn default() -> EventListenerPhase
Returns the “default value” for a type. Read more
source§impl PartialEq<EventListenerPhase> for EventListenerPhase
impl PartialEq<EventListenerPhase> for EventListenerPhase
source§fn eq(&self, other: &EventListenerPhase) -> bool
fn eq(&self, other: &EventListenerPhase) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EventListenerPhase
impl Eq for EventListenerPhase
impl StructuralEq for EventListenerPhase
impl StructuralPartialEq for EventListenerPhase
Auto Trait Implementations§
impl RefUnwindSafe for EventListenerPhase
impl Send for EventListenerPhase
impl Sync for EventListenerPhase
impl Unpin for EventListenerPhase
impl UnwindSafe for EventListenerPhase
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