pub struct HeartbeatOptions {
pub interval: Duration,
pub poll: Duration,
}Expand description
How spawn_heartbeat_with paces its writes.
Fields§
§interval: DurationHow often an unchanged state is rewritten (the liveness beat): without fsync.
poll: DurationHow often the state is looked at to see whether it changed. A change is written at once
(durably) at the next look, so this bounds how late a change reaches the record. Clamped to
1 ms..=interval.
Trait Implementations§
Source§impl Clone for HeartbeatOptions
impl Clone for HeartbeatOptions
impl Copy for HeartbeatOptions
Source§impl Debug for HeartbeatOptions
impl Debug for HeartbeatOptions
Source§impl Default for HeartbeatOptions
impl Default for HeartbeatOptions
impl Eq for HeartbeatOptions
Source§impl PartialEq for HeartbeatOptions
impl PartialEq for HeartbeatOptions
impl StructuralPartialEq for HeartbeatOptions
Auto Trait Implementations§
impl Freeze for HeartbeatOptions
impl RefUnwindSafe for HeartbeatOptions
impl Send for HeartbeatOptions
impl Sync for HeartbeatOptions
impl Unpin for HeartbeatOptions
impl UnsafeUnpin for HeartbeatOptions
impl UnwindSafe for HeartbeatOptions
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