Struct varu64::Encode
[−]
[src]
pub struct Encode<W> { /* fields omitted */ }
An AsyncEncode
for encoding a VarU64.
Methods
impl<W> Encode<W>
[src]
Trait Implementations
impl<W: AsyncWrite> AsyncEncode<W> for Encode<W>
[src]
fn poll_encode(self, cx: &mut Context, writer: &mut W) -> PollEnc<Self>
[src]
Call writer.poll_write
once with encoded data, propagating any Err
and Pending
, and returning how many bytes were written. Read more
impl<W: AsyncWrite> AsyncEncodeLen<W> for Encode<W>
[src]
fn remaining_bytes(&self) -> usize
[src]
Return the exact number of bytes this will still write.