#[non_exhaustive]#[repr(i32)]pub enum CheckpointMode {
PASSIVE = 0,
FULL = 1,
RESTART = 2,
TRUNCATE = 3,
}Available on crate feature
sqlsrv only.Expand description
Checkpoint mode
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PASSIVE = 0
Do as much as possible w/o blocking
FULL = 1
Wait for writers, then checkpoint
RESTART = 2
Like FULL but wait for readers
TRUNCATE = 3
Like RESTART but also truncate WAL
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 moreimpl Copy 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 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