pub struct LogCommitCadence {
pub records: u32,
pub interval: Duration,
}Expand description
When a durable log commits its snapshot: after records new records or
interval of time with a change, whichever comes first, and once more
as the server stops or the log is dropped.
Fields§
§records: u32Commit once Total_Record_Count has moved this far past the last commit. Zero turns the count trigger off.
interval: DurationCommit once this long has passed since the last commit and the state changed. The server looks once a second, so it is met to within about a second. Zero turns the time trigger off.
Implementations§
Source§impl LogCommitCadence
impl LogCommitCadence
Sourcepub const DEFAULT_RECORDS: u32 = 100
pub const DEFAULT_RECORDS: u32 = 100
The default count trigger: 100 records.
Sourcepub const DEFAULT_INTERVAL: Duration
pub const DEFAULT_INTERVAL: Duration
The default time trigger: 60 seconds.
Trait Implementations§
Source§impl Clone for LogCommitCadence
impl Clone for LogCommitCadence
impl Copy for LogCommitCadence
Source§impl Debug for LogCommitCadence
impl Debug for LogCommitCadence
impl Eq for LogCommitCadence
Source§impl PartialEq for LogCommitCadence
impl PartialEq for LogCommitCadence
impl StructuralPartialEq for LogCommitCadence
Auto Trait Implementations§
impl Freeze for LogCommitCadence
impl RefUnwindSafe for LogCommitCadence
impl Send for LogCommitCadence
impl Sync for LogCommitCadence
impl Unpin for LogCommitCadence
impl UnsafeUnpin for LogCommitCadence
impl UnwindSafe for LogCommitCadence
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