Trait nexus::Configurer [] [src]

pub trait Configurer<S> {
    fn add_socket(&mut self, socket: S, events: EventSet);
    fn add_socket_timeout(
        &mut self,
        socket: S,
        events: EventSet,
        timeout_ms: u64
    ); fn remove_socket(&mut self, token: Token); fn update_socket(&mut self, token: Token, events: EventSet); fn update_socket_timeout(
        &mut self,
        token: Token,
        events: EventSet,
        timeout_ms: u64
    ); fn shutdown(&mut self, error: Error); }

Trait to allow a Protocol implementation to configure the Reactor's sockets.

Required Methods

Add socket to the Reactor.

Add socket to the Reactor with a timeout.

Remove the socket associated to the token from the Reactor.

Update the socket associated to the token from the Reactor.

Update the socket associated to the token from the Reactor with a timeout.

Signal reactor to shutdown at the end of the current iteration.

The error passed in will be returned from the Reactor's run function. If this function is called more than once in a single iteration, the first error will be returned.

Implementors