#[non_exhaustive]pub struct RecoveryPlan { /* private fields */ }Expand description
A read-only, point-in-time recovery decision for an Acta file.
Inspection captures the file length when it opens the file and validates
only that snapshot. The plan must not be treated as an authorization to
truncate later: repair_incomplete_tail independently opens, locks, and
rescans the current file before changing anything.
Implementations§
Source§impl RecoveryPlan
impl RecoveryPlan
Sourcepub fn action(&self) -> RecoveryAction
pub fn action(&self) -> RecoveryAction
The action supported by this plan.
Sourcepub fn last_good_offset(&self) -> u64
pub fn last_good_offset(&self) -> u64
The byte after the last complete, validated frame.
Sourcepub fn bytes_to_remove(&self) -> u64
pub fn bytes_to_remove(&self) -> u64
The number of bytes a matching repair would remove.
Sourcepub fn requires_repair(&self) -> bool
pub fn requires_repair(&self) -> bool
Whether the snapshot contains a repairable incomplete data-frame tail.
Trait Implementations§
Source§impl Clone for RecoveryPlan
impl Clone for RecoveryPlan
Source§fn clone(&self) -> RecoveryPlan
fn clone(&self) -> RecoveryPlan
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 RecoveryPlan
Source§impl Debug for RecoveryPlan
impl Debug for RecoveryPlan
impl Eq for RecoveryPlan
Source§impl PartialEq for RecoveryPlan
impl PartialEq for RecoveryPlan
impl StructuralPartialEq for RecoveryPlan
Auto Trait Implementations§
impl Freeze for RecoveryPlan
impl RefUnwindSafe for RecoveryPlan
impl Send for RecoveryPlan
impl Sync for RecoveryPlan
impl Unpin for RecoveryPlan
impl UnsafeUnpin for RecoveryPlan
impl UnwindSafe for RecoveryPlan
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