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, enc: 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,
[src]
W: AsyncWrite,
C: AsyncEncodeLen,
pub fn remaining_bytes(&mut self) -> usize
[src]
Return the exact number of bytes this will still write.
Panics if called after the future completed.
Trait Implementations
impl<W, C> Future for Encoder<W, C> where
W: AsyncWrite,
C: AsyncEncode,
[src]
W: AsyncWrite,
C: AsyncEncode,