Trait rabble::ConnectionHandler [] [src]

pub trait ConnectionHandler: Sized {
    type Msg;
    type ClientMsg;
    fn new(pid: Pid, id: u64) -> Self;
    fn handle_envelope(
        &mut self,
        _: Envelope<Self::Msg>,
        _: &mut Vec<ConnectionMsg<Self>>
    ); fn handle_network_msg(
        &mut self,
        _: Self::ClientMsg,
        _: &mut Vec<ConnectionMsg<Self>>
    ); }

Implement this for a specific connection handler

Associated Types

Required Methods

Implementors