pub trait AsyncWritePacket<const N: usize>: ErrorType {
// Required methods
async fn write_packet(&mut self, x: Vec<u8, N>) -> Result<(), Self::Error>;
async fn flush(&mut self) -> Result<(), Self::Error>;
}
Required Methods§
async fn write_packet(&mut self, x: Vec<u8, N>) -> Result<(), Self::Error>
async fn flush(&mut self) -> Result<(), Self::Error>
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.