Enum comm::client::Task
[−]
[src]
pub enum Task {
HandleNetworkEvent(Event),
ScheduleMessageDelivery(Address, TextMessage),
Shutdown,
}A command for the Client to execute immediately.
Variants
HandleNetworkEvent(Event)Handle events emitted by the Network, e.g. handling packets that we receive.
ScheduleMessageDelivery(Address, TextMessage)Schedules a message to be delivered.
ShutdownShuts down the Client. When it has completed the shutdown procedure, it will emit an
Event::Shutdown.