Trait AsyncWriterFutureLen

Source
pub trait AsyncWriterFutureLen<W: AsyncWrite>: AsyncWriterFuture<W> {
    // Required method
    fn remaining_bytes(&self) -> usize;
}
๐Ÿ‘ŽDeprecated: This was a failed attempt at finding a suitable abstraction. The async-codec crate might be what you need instead.
Expand description

Base trait for futures that write things into AsyncWrites and can precompute the exact number of bytes to write.

Required Methodsยง

Source

fn remaining_bytes(&self) -> usize

๐Ÿ‘ŽDeprecated: This was a failed attempt at finding a suitable abstraction. The async-codec crate might be what you need instead.

Compute the exact number of bytes that will still be written by this future.

Implementorsยง