Trait umio::Dispatcher [] [src]

pub trait Dispatcher: Sized {
    type Timeout;
    type Message: Send;
    fn incoming<'a>(
        &mut self,
        provider: Provider<'a, Self>,
        message: &[u8],
        addr: SocketAddr
    ) { ... } fn notify<'a>(
        &mut self,
        provider: Provider<'a, Self>,
        message: Self::Message
    ) { ... } fn timeout<'a>(
        &mut self,
        provider: Provider<'a, Self>,
        timeout: Self::Timeout
    ) { ... } }

Handles events occurring within the event loop.

Associated Types

Provided Methods

Process an incoming message from the given address.

Process a message sent via the event loop channel.

Process a timeout that has been triggered.

Implementors