pub struct UiEvent<T> {
    pub data: Arc<T>,
    /* private fields */
}
Expand description

A UiEvent is a type that wraps various EventData.

You should prefer to use the name of the event directly, rather than the UiEvent generic type.

For the HTML crate, this would include [MouseEvent], [FormEvent] etc.

Fields

data: Arc<T>

The internal data of the event This is wrapped in an Arc so that it can be sent across threads

Implementations

Prevent this event from bubbling up the tree.

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

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 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.