pub struct DoctorRepairOptions {
pub truncate_wal_tail: bool,
pub reconstruct_main_ref: bool,
}Expand description
Opt-in repair switches for doctor.
Fields§
§truncate_wal_tail: boolTruncate incomplete trailing bytes from the active WAL after verification confirms that the prefix is valid.
reconstruct_main_ref: boolRequest the refused format-1 heads/main reconstruction compatibility path.
Implementations§
Source§impl DoctorRepairOptions
impl DoctorRepairOptions
Sourcepub const fn truncate_wal_tail() -> Self
pub const fn truncate_wal_tail() -> Self
Return options that enable only safe active-WAL tail truncation.
Sourcepub const fn reconstruct_main_ref() -> Self
pub const fn reconstruct_main_ref() -> Self
Return options that request the refused format-1 missing-pointer compatibility path.
Trait Implementations§
Source§impl Clone for DoctorRepairOptions
impl Clone for DoctorRepairOptions
Source§fn clone(&self) -> DoctorRepairOptions
fn clone(&self) -> DoctorRepairOptions
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 DoctorRepairOptions
Source§impl Debug for DoctorRepairOptions
impl Debug for DoctorRepairOptions
impl Eq for DoctorRepairOptions
Source§impl PartialEq for DoctorRepairOptions
impl PartialEq for DoctorRepairOptions
impl StructuralPartialEq for DoctorRepairOptions
Auto Trait Implementations§
impl Freeze for DoctorRepairOptions
impl RefUnwindSafe for DoctorRepairOptions
impl Send for DoctorRepairOptions
impl Sync for DoctorRepairOptions
impl Unpin for DoctorRepairOptions
impl UnsafeUnpin for DoctorRepairOptions
impl UnwindSafe for DoctorRepairOptions
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