pub struct WalCheckpointPolicy {
pub passive_above_bytes: u64,
pub restart_above_bytes: u64,
pub quiet_for: Duration,
}Expand description
When a WalCheckpointJob checkpoints.
Fields§
§passive_above_bytes: u64PASSIVE once the log is at least this large. A PASSIVE checkpoint never waits for readers or writers. Default 16 MiB.
restart_above_bytes: u64RESTART once the log is at least this large and the database has been idle for
quiet_for. Default 256 MiB.
quiet_for: DurationHow long the database must have been idle before a RESTART. Default 30 seconds.
Trait Implementations§
Source§impl Clone for WalCheckpointPolicy
impl Clone for WalCheckpointPolicy
impl Copy for WalCheckpointPolicy
Source§impl Debug for WalCheckpointPolicy
impl Debug for WalCheckpointPolicy
Source§impl Default for WalCheckpointPolicy
impl Default for WalCheckpointPolicy
impl Eq for WalCheckpointPolicy
Source§impl PartialEq for WalCheckpointPolicy
impl PartialEq for WalCheckpointPolicy
impl StructuralPartialEq for WalCheckpointPolicy
Auto Trait Implementations§
impl Freeze for WalCheckpointPolicy
impl RefUnwindSafe for WalCheckpointPolicy
impl Send for WalCheckpointPolicy
impl Sync for WalCheckpointPolicy
impl Unpin for WalCheckpointPolicy
impl UnsafeUnpin for WalCheckpointPolicy
impl UnwindSafe for WalCheckpointPolicy
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