pub struct RecoveryReport {
pub oldest_lsn: Lsn,
pub durable_lsn: Lsn,
pub tail_state: TailState,
pub segments_scanned: usize,
}Expand description
Outcome of recovery, returned by Wal::open (§6).
Fields§
§oldest_lsn: LsnP: base LSN of the oldest surviving segment (1 until the first
checkpoint).
durable_lsn: Lsnk: highest recovered durable LSN (oldest_lsn - 1 if the suffix is
empty).
tail_state: TailStateWhether the tail was clean or a torn tail was truncated.
segments_scanned: usizeNumber of segment files inspected during recovery.
Trait Implementations§
Source§impl Clone for RecoveryReport
impl Clone for RecoveryReport
Source§fn clone(&self) -> RecoveryReport
fn clone(&self) -> RecoveryReport
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 moreimpl Copy for RecoveryReport
Auto Trait Implementations§
impl Freeze for RecoveryReport
impl RefUnwindSafe for RecoveryReport
impl Send for RecoveryReport
impl Sync for RecoveryReport
impl Unpin for RecoveryReport
impl UnsafeUnpin for RecoveryReport
impl UnwindSafe for RecoveryReport
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