pub trait IntoIoWriteResult {
// Required method
fn into_io_write_result(self, buf: &[u8]) -> Result<usize>;
}
Expand description
A helper trait used by IoTryWriter
write method
to convert wrapped function result to io::Result
with error propagation.
Required Methods§
Sourcefn into_io_write_result(self, buf: &[u8]) -> Result<usize>
fn into_io_write_result(self, buf: &[u8]) -> Result<usize>
Performs the conversion with error propagation.