pub trait CustomWrite<ErrType> {
// Required methods
fn write(&mut self, data: &[u8]) -> Result<usize, ErrType>;
fn flush(&mut self) -> Result<(), ErrType>;
}
Expand description
this trait does not allow for transient errors: they must be retried in the underlying layer