pub enum Timeout {
Now,
After(Duration),
Until(Instant),
Forever,
}Expand description
Exact timeout budget for one host-driven turn.
Variants§
Now
Collect immediately available work without blocking.
After(Duration)
Wait at most this duration measured from turn entry.
Until(Instant)
Wait until this absolute backend-clock deadline.
Forever
Wait without a host deadline, still bounded by pending timers and notifications.
Implementations§
Trait Implementations§
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