pub struct CheckpointResult {
pub wal_max_frame: u64,
pub wal_total_backfilled: u64,
pub wal_checkpoint_backfilled: u64,
pub db_truncate_sent: bool,
pub db_sync_sent: bool,
pub wal_truncate_sent: bool,
pub wal_sync_sent: bool,
/* private fields */
}Fields§
§wal_max_frame: u64max frame in the WAL after checkpoint note, that as we TRUNCATE wal outside of the main checkpoint routine - this field will be set to non-zero number even for TRUNCATE mode
wal_total_backfilled: u64total amount of frames backfilled to the DB file after checkpoint
wal_checkpoint_backfilled: u64amount of new frames backfilled to the DB file during this checkpoint procedure
db_truncate_sent: bool§db_sync_sent: bool§wal_truncate_sent: boolWhether WAL truncation I/O has been submitted (for TRUNCATE checkpoint mode)
wal_sync_sent: boolWhether WAL sync I/O has been submitted after truncation
Implementations§
Source§impl CheckpointResult
impl CheckpointResult
pub fn new( wal_max_frame: u64, wal_total_backfilled: u64, wal_checkpoint_backfilled: u64, ) -> Self
pub const fn everything_backfilled(&self) -> bool
pub fn should_truncate(&self) -> bool
pub fn release_guard(&mut self)
Trait Implementations§
Source§impl Clone for CheckpointResult
impl Clone for CheckpointResult
Source§fn clone(&self) -> CheckpointResult
fn clone(&self) -> CheckpointResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CheckpointResult
impl Debug for CheckpointResult
Source§impl Default for CheckpointResult
impl Default for CheckpointResult
Source§fn default() -> CheckpointResult
fn default() -> CheckpointResult
Returns the “default value” for a type. Read more
Source§impl Drop for CheckpointResult
impl Drop for CheckpointResult
Auto Trait Implementations§
impl !RefUnwindSafe for CheckpointResult
impl !UnwindSafe for CheckpointResult
impl Freeze for CheckpointResult
impl Send for CheckpointResult
impl Sync for CheckpointResult
impl Unpin for CheckpointResult
impl UnsafeUnpin for CheckpointResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more