pub enum EventPhase {
None,
Capturing,
AtTarget,
Bubbling,
}Expand description
Which phase of dispatch is currently running.
Variants§
None
No dispatch in progress.
Capturing
Descending from root toward target. Capture-mode listeners fire
on ancestors.
AtTarget
At the target node. Both capture and bubble listeners fire.
Bubbling
Ascending from target back to root. Non-capture listeners fire
on ancestors.
Trait Implementations§
Source§impl Clone for EventPhase
impl Clone for EventPhase
impl Copy for EventPhase
Source§impl Debug for EventPhase
impl Debug for EventPhase
impl Eq for EventPhase
Source§impl Hash for EventPhase
impl Hash for EventPhase
Source§impl PartialEq for EventPhase
impl PartialEq for EventPhase
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