pub struct RunClock { /* private fields */ }Expand description
When the run started, shared by every worker.
The global budget has to be measured from one origin across all workers, or each would enforce its own fifteen seconds and the run’s total would scale with the worker count.
Implementations§
Source§impl RunClock
impl RunClock
Sourcepub const fn global_timeout(&self) -> Duration
pub const fn global_timeout(&self) -> Duration
The configured global budget.
Sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Whether the global budget is spent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunClock
impl RefUnwindSafe for RunClock
impl Send for RunClock
impl Sync for RunClock
impl Unpin for RunClock
impl UnsafeUnpin for RunClock
impl UnwindSafe for RunClock
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