pub trait Write {
type Error: Debug + Display;
// Required method
fn write(&mut self, data: &[u8]) -> Result<(), Self::Error>;
}
Expand description
Interface to write bytes
pub trait Write {
type Error: Debug + Display;
// Required method
fn write(&mut self, data: &[u8]) -> Result<(), Self::Error>;
}
Interface to write bytes