mioco::select!
[−]
[src]
macro_rules! select { (@wrap1 ) => { ... }; (@wrap1 r:$rx:expr => $code:expr, $($tail:tt)*) => { ... }; (@wrap1 w:$rx:expr => $code:expr, $($tail:tt)*) => { ... }; (@wrap1 rw:$rx:expr => $code:expr, $($tail:tt)*) => { ... }; (@wrap2 $ret:ident) => { ... }; (@wrap2 $ret:ident r:$rx:expr => $code:expr, $($tail:tt)*) => { ... }; (@wrap2 $ret:ident w:$rx:expr => $code:expr, $($tail:tt)*) => { ... }; (@wrap2 $ret:ident rw:$rx:expr => $code:expr, $($tail:tt)*) => { ... }; ($($tail:tt)*) => { ... }; }
Select operation on multiple IO.
Warning: Mioco can't guarantee that the returned EventSource
will
not block when actually attempting to read
or write
. You must
use try_read
and try_write
instead to handle spurious wakeups.