Enum calloop::channel::Event[][src]

pub enum Event<T> {
    Msg(T),
    Closed,
}
Expand description

The events generated by the channel event source

Variants

Msg

A message was received and is bundled here

Tuple Fields of Msg

0: T
Closed

The channel was closed

This means all the Senders associated with this channel have been dropped, no more messages will ever be received.

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

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.