Trait diny::buffer::BufferEncode [−][src]
pub trait BufferEncode {
type Format: FormatEncode;
type Data;
fn new(data: &Self::Data) -> Self;
fn poll_encode_buffer<W>(
&mut self,
format: &Self::Format,
writer: &mut W,
cx: &mut Context<'_>
) -> Poll<Result<(), <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.