pub enum Timeout {
PendForever,
Poll,
Milliseconds(u32),
}Expand description
Timeout options for receiving messages from a pipe.
Variants§
PendForever
Block indefinitely until a message is received.
Poll
Perform a non-blocking poll for a message.
Milliseconds(u32)
Wait for the specified number of milliseconds.
Auto Trait Implementations§
impl Freeze for Timeout
impl RefUnwindSafe for Timeout
impl Send for Timeout
impl Sync for Timeout
impl Unpin for Timeout
impl UnsafeUnpin for Timeout
impl UnwindSafe for Timeout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more