ClientApi

Trait ClientApi 

Source
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§