pub trait AsyncReadFrom: Sized {
// Required method
fn async_read_from<R: AsyncRead + Unpin>(
r: &mut R,
) -> impl Future<Output = Result<Self>>;
}Available on crate feature
tokio only.Expand description
Read from a reader asynchronously.
Required Methods§
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.