[−][src]Macro futures_ext::handle_nb
A convenience macro for working with io::Result<T>
from the Read
and
Write
traits.
This macro takes io::Result<T>
as input, and returns Poll<T, io::Error>
as the output. If the input type is of the Err
variant, then
Poll::NotReady
is returned if it indicates WouldBlock
or otherwise Err
is returned.