pub enum EventPhase {
None,
Capturing,
AtTarget,
Bubbling,
}Expand description
Indicates the phase of event flow during event proessing.
Variants§
None
No event is currently being processed.
Capturing
The event is being propagated down through the target’s ancestors.
AtTarget
The target is currently processing the event.
Bubbling
The event is propagating back up through the target’s ancestors.
Trait Implementations§
Source§impl Clone for EventPhase
impl Clone for EventPhase
Source§fn clone(&self) -> EventPhase
fn clone(&self) -> EventPhase
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 EventPhase
Source§impl Debug for EventPhase
impl Debug for EventPhase
impl Eq for EventPhase
Source§impl PartialEq for EventPhase
impl PartialEq for EventPhase
Source§fn eq(&self, other: &EventPhase) -> bool
fn eq(&self, other: &EventPhase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EventPhase
Auto Trait Implementations§
impl Freeze for EventPhase
impl RefUnwindSafe for EventPhase
impl Send for EventPhase
impl Sync for EventPhase
impl Unpin for EventPhase
impl UnsafeUnpin for EventPhase
impl UnwindSafe for EventPhase
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