Macro atm_io_utils::write_nz [] [src]

macro_rules! write_nz {
    ($e:expr, $msg:expr) => { ... };
}

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.