Enum comm::client::Task [] [src]

pub enum Task {
    HandleNetworkEvent(Event),
    ScheduleMessageDelivery(AddressTextMessage),
    Shutdown,
}

A command for the Client to execute immediately.

Variants

Handle events emitted by the Network, e.g. handling packets that we receive.

Schedules a message to be delivered.

Shuts down the Client. When it has completed the shutdown procedure, it will emit an Event::Shutdown.

Trait Implementations

impl Debug for Task
[src]

[src]

Formats the value using the given formatter. Read more