pub struct Pace {
pub wait: Duration,
pub rest: u32,
pub run_for: Duration,
}Expand description
How the holder of the sync role paces its checks.
Fields§
§wait: DurationHow long it waits after it takes the role, and after a run that caught up with the round, before it looks again whether checks are due.
rest: u32How many times as long as reading a file took a check rests after it, so that checks take at most a share of the disk’s time: 4, a fifth.
run_for: DurationHow long one run goes on at most, rests included, before it saves where it stands and ends, once the file it reads is read; another starts once the rest it owes is over, if more is due.
Implementations§
Trait Implementations§
impl Copy for Pace
impl Eq for Pace
impl StructuralPartialEq for Pace
Auto Trait Implementations§
impl Forget for Pace
impl Freeze for Pace
impl Move for Pace
impl RefUnwindSafe for Pace
impl Send for Pace
impl Sync for Pace
impl Unpin for Pace
impl UnsafeUnpin for Pace
impl UnwindSafe for Pace
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.