[][src]Enum gui::ChainEvent

pub enum ChainEvent<E> {
    Event(E),
    Chain(E, Box<ChainEvent<E>>),
}

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.

Methods

impl<E> ChainEvent<E>[src]

pub fn into_last(self) -> E[src]

Convert this ChainEvent into the last event it comprises.

Trait Implementations

impl<E: Debug> Debug for ChainEvent<E>[src]

impl<E> From<E> for ChainEvent<E>[src]

A convenience conversion from a single event into a ChainEvent.

Auto Trait Implementations

impl<E> RefUnwindSafe for ChainEvent<E> where
    E: RefUnwindSafe

impl<E> Send for ChainEvent<E> where
    E: Send

impl<E> Sync for ChainEvent<E> where
    E: Sync

impl<E> Unpin for ChainEvent<E> where
    E: Unpin

impl<E> UnwindSafe for ChainEvent<E> where
    E: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.