pub trait ExpectIoFlushResult {
    // Required method
    fn expect_io_flush_result(self) -> Result<()>;
}
Expand description

A helper trait used by IoWriter flush method to convert wrapped function result to io::Result with error unwrapping.

Required Methods§

source

fn expect_io_flush_result(self) -> Result<()>

Performs the conversion with error unwrapping.

Implementations on Foreign Types§

source§

impl ExpectIoFlushResult for ()

source§

impl<E: Debug> ExpectIoFlushResult for Result<(), E>

Implementors§