pub struct LoopSchedule {
pub heartbeat: Duration,
pub claim_idle: Duration,
pub claim_after_null: Duration,
pub log_flush: Duration,
pub auto_update_tick: Duration,
}Expand description
Schedule for the four background loops. Tests dial these intervals down to milliseconds so we can exercise the loop bodies quickly.
Fields§
§heartbeat: Duration§claim_idle: Duration§claim_after_null: Duration§log_flush: Duration§auto_update_tick: DurationImplementations§
Source§impl LoopSchedule
impl LoopSchedule
Sourcepub fn fast_for_tests() -> Self
pub fn fast_for_tests() -> Self
Schedule with 1 ms intervals — used by tests to exercise the loop wrappers without blocking.
Trait Implementations§
Source§impl Clone for LoopSchedule
impl Clone for LoopSchedule
Source§fn clone(&self) -> LoopSchedule
fn clone(&self) -> LoopSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoopSchedule
impl Debug for LoopSchedule
Source§impl Default for LoopSchedule
impl Default for LoopSchedule
impl Copy for LoopSchedule
Auto Trait Implementations§
impl Freeze for LoopSchedule
impl RefUnwindSafe for LoopSchedule
impl Send for LoopSchedule
impl Sync for LoopSchedule
impl Unpin for LoopSchedule
impl UnsafeUnpin for LoopSchedule
impl UnwindSafe for LoopSchedule
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