pub enum WaitPolicy {
NoWait,
Bounded(Duration),
Block,
}Expand description
2026-09-25: How long a request router’s recv may wait for something to arrive.
Variants§
NoWait
2026-09-25: Return whatever is queued, at once.
Bounded(Duration)
2026-09-25: Wait at most this long for a request, a rotation or the close.
Block
2026-09-25: Wait until a request or a rotation is queued, or the inbox closes.
Trait Implementations§
Source§impl Clone for WaitPolicy
impl Clone for WaitPolicy
Source§fn clone(&self) -> WaitPolicy
fn clone(&self) -> WaitPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaitPolicy
impl Debug for WaitPolicy
Source§impl PartialEq for WaitPolicy
impl PartialEq for WaitPolicy
impl Copy for WaitPolicy
impl Eq for WaitPolicy
impl StructuralPartialEq for WaitPolicy
Auto Trait Implementations§
impl Freeze for WaitPolicy
impl RefUnwindSafe for WaitPolicy
impl Send for WaitPolicy
impl Sync for WaitPolicy
impl Unpin for WaitPolicy
impl UnwindSafe for WaitPolicy
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