Macro read_nz

Source
macro_rules! read_nz {
    ($e:expr, $msg:expr) => { ... };
}
Expand description

A variant of try_ready! that checks whether the expression evaluates to 0, and emits a futures_io::Error of kind UnexpectedEof with the given message if so.