Struct dioxus_core::Listener[][src]

pub struct Listener<'bump> {
    pub mounted_node: Cell<Option<ElementId>>,
    pub event: &'static str,
    // some fields omitted
}
Expand description

An event listener. IE onclick, onkeydown, etc

Fields

mounted_node: Cell<Option<ElementId>>

The ID of the node that this listener is mounted to Used to generate the event listener’s ID on the DOM

event: &'static str

The type of event to listen for.

IE “click” - whatever the renderer needs to attach the listener by name.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.