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ยง
Sourcefn 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.
fn remaining_bytes(&self) -> usize
Compute the exact number of bytes that will still be written by this future.