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§
fn connect(&mut self, selection: ConnectSelection) -> Result<(), Error>
fn disconnect( &mut self, reason: DisconnectReason, responder: Sender<()>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".