pub trait MapNonBlock<T> {
    fn map_non_block(self) -> Result<Option<T>>;
}
Expand description

A helper trait to provide the map_non_block function on Results.

Required methods

Maps a Result<T> to a Result<Option<T>> by converting operation-would-block errors into Ok(None).

Implementors