pub trait AsyncBufferRead: AsyncRead + Sized {
// Provided method
fn buffer(self) -> BufReader<Self> { ... }
}
Provided Methods§
Sourcefn buffer(self) -> BufReader<Self>
fn buffer(self) -> BufReader<Self>
Buffers any AsyncRead
stream into a
BufAsyncRead
stream. Do not use this if the
underlying stream already implements
BufAsyncRead
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.