Trait toy_rpc::codec::CodecWrite[][src]

pub trait CodecWrite: Marshal {
#[must_use]    fn write_header<'life0, 'async_trait, H>(
        &'life0 mut self,
        header: H
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        H: Serialize + Metadata + Send,
        H: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn write_body<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        id: &'life1 MessageId,
        body: &'life2 (dyn Serialize + Send + Sync)
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn write_header<'life0, 'async_trait, H>(
    &'life0 mut self,
    header: H
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    H: Serialize + Metadata + Send,
    H: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn write_body<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    id: &'life1 MessageId,
    body: &'life2 (dyn Serialize + Send + Sync)
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...