pub trait ClientApi {
    // Required methods
    fn connect(&mut self, selection: ConnectSelection) -> Result<(), Error>;
    fn disconnect(
        &mut self,
        reason: DisconnectReason,
        responder: Sender<()>
    ) -> Result<(), Error>;
    fn is_alive(&self) -> bool;
}

Required Methods§

source

fn connect(&mut self, selection: ConnectSelection) -> Result<(), Error>

source

fn disconnect( &mut self, reason: DisconnectReason, responder: Sender<()> ) -> Result<(), Error>

source

fn is_alive(&self) -> bool

Queries the liveness of the channel used to control the client state machine. If the channel is not alive, this indicates that the client state machine has exited.

Implementors§