Struct varu64::Encode
[−]
[src]
pub struct Encode<W> { /* fields omitted */ }
A future for encoding a u64 into an AsyncWrite
.
Methods
impl<W> Encode<W>
[src]
pub fn new(writer: W, int: u64) -> Encode<W>
[src]
Create a new Encode
future for encoding the given u64
into the given W
.
Trait Implementations
impl<W: AsyncWrite> Future for Encode<W>
[src]
type Item = (W, usize)
The wrapped W
, and how many bytes were written into the W
.
type Error = (W, FutError)
Propagated from writing, or an error of kind "WriteZero" if a call to poll_write
returned
0 even though not all data has been written.
fn poll(&mut self, cx: &mut Context) -> Poll<Self::Item, Self::Error>
[src]
Note that this does not flush or close the wrapped W
.