#[repr(i32)]pub enum BindType {
Bind = 0,
Catch = 1,
CaptureBind = 2,
CaptureCatch = 3,
}Expand description
Event-handler propagation type — a faithful 1:1 mapping to Lynx’s
four handler kinds (bind / catch / capture-bind /
capture-catch). The variant chosen when registering a listener is
what drives Lynx’s native event chain:
- phase: capture handlers fire on the way down (root → target); bind/catch (bubble) handlers fire on the way up (target → root).
- stop: a
catchhandler stops propagation after it fires; abindhandler lets the event continue along the chain.
The discriminants match lynx_event_bind_type_e in the C bridge,
so the value crosses the FFI as a plain i32.
Variants§
Bind = 0
bind — bubble phase, does not stop propagation. The default
(what plain on_<event> registers).
Catch = 1
catch — bubble phase, stops propagation at this element.
CaptureBind = 2
capture-bind — capture phase, does not stop propagation.
CaptureCatch = 3
capture-catch — capture phase, stops propagation.
Trait Implementations§
impl Copy for BindType
impl Eq for BindType
impl StructuralPartialEq for BindType
Auto Trait Implementations§
impl Freeze for BindType
impl RefUnwindSafe for BindType
impl Send for BindType
impl Sync for BindType
impl Unpin for BindType
impl UnsafeUnpin for BindType
impl UnwindSafe for BindType
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