pub trait ByteWrite {
// Required method
async fn write<W: AsyncWrite + Unpin + ?Sized>(
&self,
writer: &mut W,
) -> Result<(), Error>;
}Expand description
Serializes a type into bytes, writing it to an AsyncWrite 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.