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§

source

fn get_receiver<'a>(&'a mut self) -> (&'a mut R, &MutableCipher)

source

fn get_sender<'a>(&'a mut self) -> (&'a mut W, &MutableCipher)

Provided Methods§

source

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,

source

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,

source

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,

source

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.

Implementors§