Skip to main content

TransportWrite

Trait TransportWrite 

Source
pub trait TransportWrite {
    type Error;

    // Required method
    async fn write(&mut self, data: &[u8]) -> Result<(), Self::Error>;
}
Expand description

Async byte output: writes the full slice (implementations may fragment internally).

Required Associated Types§

Required Methods§

Source

async fn write(&mut self, data: &[u8]) -> 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.

Implementors§