Macro write_nz

Source
macro_rules! write_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 WriteZero with the given message if so.