pub struct Budget {
pub commit: Duration,
pub proof: Duration,
}Expand description
A startup bound and a separate proof bound beginning at the observed commit.
Fields§
§commit: DurationLongest wait for the selection to name the candidate at all. This covers the candidate’s startup, which is the slow part.
proof: DurationOnce the selection names the candidate, how long to keep probing for a
fresh proof before reporting Selection::Committed. It starts when a
round reads the commit, before that round’s probe, and it also bounds
that probe, so make it cover at least one probe round trip. A driver
commits only after verifying the candidate, so a proof normally arrives
on the first probe after the commit. Zero reports Committed as soon as
the commit is read.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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