pub trait AsyncEncoder: Unpin {
// Required methods
async fn write_u8(&mut self, byte: u8) -> Result<()>;
async fn write_all(&mut self, bytes: &[u8]) -> Result<()>;
}Required Methods§
async fn write_u8(&mut self, byte: u8) -> Result<()>
async fn write_all(&mut self, bytes: &[u8]) -> Result<()>
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.