pub struct EventBinding {
pub token: u64,
pub node: u64,
pub event_type: String,
pub capture: bool,
pub handler: EventHandler,
}Expand description
One n.on(type, handler) binding.
Fields§
§token: u64Unbind token (also the host’s closure key).
node: u64Bound node (packed handle).
event_type: StringEvent type this binding listens for.
capture: booltrue = capture-phase listener; false = bubble / target listener.
handler: EventHandlerHow to invoke the handler.
Trait Implementations§
Source§impl Clone for EventBinding
impl Clone for EventBinding
Source§fn clone(&self) -> EventBinding
fn clone(&self) -> EventBinding
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 moreAuto Trait Implementations§
impl Freeze for EventBinding
impl !RefUnwindSafe for EventBinding
impl Send for EventBinding
impl Sync for EventBinding
impl Unpin for EventBinding
impl UnsafeUnpin for EventBinding
impl !UnwindSafe for EventBinding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.