#[repr(u8)]pub enum CheckpointMode {
Passive = 0,
Full = 1,
Restart = 2,
Truncate = 3,
}Expand description
WAL checkpoint mode.
Variants§
Passive = 0
Checkpoint as many frames as possible without waiting.
Full = 1
Block until all frames are checkpointed.
Restart = 2
Like Full, then truncate the WAL file.
Truncate = 3
Like Restart, then truncate WAL to zero bytes.
Trait Implementations§
Source§impl Clone for CheckpointMode
impl Clone for CheckpointMode
Source§fn clone(&self) -> CheckpointMode
fn clone(&self) -> CheckpointMode
Returns a duplicate of the value. Read more
1.0.0 · 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 CheckpointMode
impl Debug for CheckpointMode
Source§impl Hash for CheckpointMode
impl Hash for CheckpointMode
Source§impl PartialEq for CheckpointMode
impl PartialEq for CheckpointMode
impl Copy for CheckpointMode
impl Eq for CheckpointMode
impl StructuralPartialEq for CheckpointMode
Auto Trait Implementations§
impl Freeze for CheckpointMode
impl RefUnwindSafe for CheckpointMode
impl Send for CheckpointMode
impl Sync for CheckpointMode
impl Unpin for CheckpointMode
impl UnsafeUnpin for CheckpointMode
impl UnwindSafe for CheckpointMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).