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
fn incoming<'a>(
&mut self,
provider: Provider<'a, Self>,
message: &[u8],
addr: SocketAddr
)
&mut self,
provider: Provider<'a, Self>,
message: &[u8],
addr: SocketAddr
)
Process an incoming message from the given address.
fn notify<'a>(&mut self, provider: Provider<'a, Self>, message: Self::Message)
Process a message sent via the event loop channel.
fn timeout<'a>(&mut self, provider: Provider<'a, Self>, timeout: Self::Timeout)
Process a timeout that has been triggered.