pub struct EventHandlerManager<Ms> { /* private fields */ }
Expand description

Manages event handlers and listeners for elements.

Implementations

Creates an empty manager instance.

Creates a new manager instance with given event handlers. It doesn’t create listeners automatically - you have to call attach_listeners.

Creates missing listeners and attaches them to the given event_target. It can reuse listeners from the old_manager.

Add new event handlers into the manager. It doesn’t create listeners automatically - you have to call attach_listeners.

This method is used in attach_listeners method to move listeners from the old manager.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Note: Listeners will be automatically detached and removed. You have to call attach_listeners to recreate them.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.