pub trait Write {
type Error: Error + 'static;
// Required method
fn push(&mut self, input: &[u8]) -> Result<(), Self::Error>;
}
Expand description
Write trait
This is similar to Write
of standard library,
but it can define its own error type and work in no_std
.