[][src]Trait greetd_ipc::codec::TokioCodec

pub trait TokioCodec {
#[must_use]    fn read_from<'life0, 'async_trait, T: AsyncReadExt + Unpin + Send>(
        stream: &'life0 mut T
    ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
    where
        Self: Sized,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn write_to<'life0, 'life1, 'async_trait, T: AsyncWriteExt + Unpin + Send>(
        &'life0 self,
        stream: &'life1 mut T
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        T: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Reader/writer implementation over tokio::io::{AsyncReadExt, AsyncWriteExt}.

Required methods

#[must_use]fn read_from<'life0, 'async_trait, T: AsyncReadExt + Unpin + Send>(
    stream: &'life0 mut T
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>> where
    Self: Sized,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn write_to<'life0, 'life1, 'async_trait, T: AsyncWriteExt + Unpin + Send>(
    &'life0 self,
    stream: &'life1 mut T
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    T: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl TokioCodec for Request[src]

impl TokioCodec for Response[src]

Loading content...