Trait tcp_client::ClientFactory
source · pub trait ClientFactory<C: From<(TcpStream, AesCipher)>> {
// Required methods
fn get_identifier(&self) -> &'static str;
fn get_version(&self) -> &'static str;
// Provided method
fn connect<'life0, 'async_trait, A>(
&'life0 self,
addr: A
) -> Pin<Box<dyn Future<Output = Result<C, StarterError>> + Send + 'async_trait>>
where A: 'async_trait + ToSocketAddrs + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Required Methods§
fn get_identifier(&self) -> &'static str
sourcefn get_version(&self) -> &'static str
fn get_version(&self) -> &'static str
Provided Methods§
fn connect<'life0, 'async_trait, A>( &'life0 self, addr: A ) -> Pin<Box<dyn Future<Output = Result<C, StarterError>> + Send + 'async_trait>>
Object Safety§
This trait is not object safe.