pub trait ByteRead: Sized {
// Required method
async fn read<R: AsyncRead + Unpin + ?Sized>(
reader: &mut R,
) -> Result<Self, Error>;
}Expand description
Deserializes a type from raw bytes, reading it from an AsyncRead 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.