Struct async_codec_util::Encoder
[−]
[src]
pub struct Encoder<W, C> { /* fields omitted */ }
Future for fully encoding an AsyncEncode
into an AsyncWrite
.
Methods
impl<W, C> Encoder<W, C>
[src]
pub fn new(writer: W, co: C) -> Encoder<W, C>
[src]
Create a new Encoder
wrapping an AsyncWrite
and consuming an AsyncEncode
.
impl<W, C> Encoder<W, C> where
W: AsyncWrite,
C: AsyncEncodeLen<W>,
[src]
W: AsyncWrite,
C: AsyncEncodeLen<W>,
pub fn remaining_bytes(&self) -> usize
[src]
Return the exact number of bytes this will still write.
Trait Implementations
impl<W, C> Future for Encoder<W, C> where
W: AsyncWrite,
C: AsyncEncode<W>,
[src]
W: AsyncWrite,
C: AsyncEncode<W>,