pub trait Connection: Sized {
    type Reader: Send + Unpin + AsyncRead;
    type Writer: Send + Unpin + AsyncWrite;
    fn reader_mut(&mut self) -> &mut Self::Reader;
fn writer_mut(&mut self) -> &mut Self::Writer;
fn reader_and_writer_mut(
        &mut self
    ) -> (&mut Self::Reader, &mut Self::Writer); fn send<'life0, 'life1, 'async_trait, D: ?Sized + ToVec + Sync>(
        &'life0 mut self,
        data: &'life1 D
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        D: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn sendline<'life0, 'life1, 'async_trait, D: ?Sized + ToVec + Sync>(
        &'life0 mut self,
        data: &'life1 D
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        D: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn recvuntil<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        pattern: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn recvline<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn interactive<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        Self: Send + 'async_trait
, { ... } }

Associated Types

Required methods

Provided methods

Implementors