Trait diny::buffer::BufferEncode[][src]

pub trait BufferEncode {
    type Format: FormatEncode;
    type Data;
    fn init_buffer(data: &Self::Data) -> Self;
fn start_encode_buffer<W>(
        format: &Self::Format,
        writer: &mut W,
        data: &Self::Data,
        cx: &mut Context<'_>
    ) -> StartEncodeStatus<Self, <Self::Format as Format>::Error>
    where
        W: AsyncWrite + Unpin
;
fn poll_encode_buffer<W>(
        &mut self,
        format: &Self::Format,
        writer: &mut W,
        cx: &mut Context<'_>
    ) -> PollEncodeStatus<<Self::Format as Format>::Error>
    where
        W: AsyncWrite + Unpin
; }
Expand description

A convenience trait for types that encode to an intermediate buffer prior to serialization.

Associated Types

Required methods

Implementors