pub trait Write {
type Error: Debug + Display;
// Required method
fn write(&mut self, data: &[u8]) -> Result<(), Self::Error>;
}Expand description
Interface to write bytes
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".