Trait tcp_client::client_base::ClientBase
source · pub trait ClientBase<R, W>{
// Required methods
fn get_receiver<'a>(&'a mut self) -> (&'a mut R, &MutableCipher);
fn get_sender<'a>(&'a mut self) -> (&'a mut W, &MutableCipher);
// Provided methods
fn send<'life0, 'life1, 'async_trait, B>(
&'life0 mut self,
message: &'life1 mut B
) -> Pin<Box<dyn Future<Output = Result<(), PacketError>> + Send + 'async_trait>>
where B: 'async_trait + Buf + Send,
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn recv<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<BytesMut, PacketError>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn send_recv<'life0, 'life1, 'async_trait, B>(
&'life0 mut self,
message: &'life1 mut B
) -> Pin<Box<dyn Future<Output = Result<BytesMut, PacketError>> + Send + 'async_trait>>
where B: 'async_trait + Buf + Send,
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn check_func<'life0, 'life1, 'async_trait>(
&'life0 mut self,
func: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), PacketError>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}
Required Methods§
fn get_receiver<'a>(&'a mut self) -> (&'a mut R, &MutableCipher)
fn get_sender<'a>(&'a mut self) -> (&'a mut W, &MutableCipher)
Provided Methods§
fn send<'life0, 'life1, 'async_trait, B>( &'life0 mut self, message: &'life1 mut B ) -> Pin<Box<dyn Future<Output = Result<(), PacketError>> + Send + 'async_trait>>
fn recv<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<BytesMut, PacketError>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
fn send_recv<'life0, 'life1, 'async_trait, B>( &'life0 mut self, message: &'life1 mut B ) -> Pin<Box<dyn Future<Output = Result<BytesMut, PacketError>> + Send + 'async_trait>>
fn check_func<'life0, 'life1, 'async_trait>(
&'life0 mut self,
func: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), PacketError>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Object Safety§
This trait is not object safe.