Enum fifo::WouldBlock
[−]
[src]
pub enum WouldBlock { Nonblock, Sleep(u64), }
What can we do when operations on Sender
or Receiver
would block.
- Just return
Err(ErrorKind::WouldBlock)
immediately; or - sleep for some milliseconds.
The default on Sender
and Receiver
is Sleep(10).
Variants
Nonblock
Sleep(u64)