pub struct ByTimeout(pub Duration);Expand description
Time-based completion: complete when the elapsed time since the first message ≥ Duration.
Evaluated lazily, on each new arrival — see the module doc.
Tuple Fields§
§0: DurationTrait Implementations§
Source§impl CompletionCondition for ByTimeout
impl CompletionCondition for ByTimeout
impl Copy for ByTimeout
Auto Trait Implementations§
impl Freeze for ByTimeout
impl RefUnwindSafe for ByTimeout
impl Send for ByTimeout
impl Sync for ByTimeout
impl Unpin for ByTimeout
impl UnsafeUnpin for ByTimeout
impl UnwindSafe for ByTimeout
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