Enum gui::ChainEvent

source ·
pub enum ChainEvent<E> {
    Event(E),
    Chain(E, Box<ChainEvent<E>>),
}
Expand description

An event potentially comprising multiple event objects.

Variants

Event(E)

An arbitrary event.

Chain(E, Box<ChainEvent<E>>)

A chain of events.

The events will be processed in the order they are chained.

Implementations

Convert this ChainEvent into the last event it comprises.

Trait Implementations

Formats the value using the given formatter. Read more

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.