Enum thrust::reactor::Dispatch [] [src]

pub enum Dispatch {
    Data(Token, Vec<u8>),
}

Communication from the Reactor to outside components happens with a Dispatch message and normal Rust channels instead of Mio's variant.

Variants

Data

When a socket has been read, the Reactor will send the Dispatch::Data message to the associating channel.

We also associate any incoming data with the Token of the responsible socket.

Trait Implementations

Derived Implementations

impl Debug for Dispatch

fn fmt(&self, __arg_0: &mut Formatter) -> Result