pub struct VerifyConfig {
pub verify_btree: bool,
pub verify_log: bool,
pub verify_data_checksums: bool,
pub repair: bool,
pub max_errors: u32,
pub verbose: bool,
pub database_name: Option<String>,
}Expand description
Configuration for verification.
Fields§
§verify_btree: boolWhether to verify the B-tree structure.
verify_log: boolWhether to verify log files.
verify_data_checksums: boolWhether to verify data checksums.
repair: boolWhether to repair problems found.
max_errors: u32Maximum number of errors before stopping.
verbose: boolWhether to print verbose progress information.
database_name: Option<String>Whether to verify only a specific database.
Implementations§
Source§impl VerifyConfig
impl VerifyConfig
Sourcepub fn new() -> VerifyConfig
pub fn new() -> VerifyConfig
Create a new verification config with default settings.
Sourcepub fn with_btree_verification(self, enabled: bool) -> VerifyConfig
pub fn with_btree_verification(self, enabled: bool) -> VerifyConfig
Enable B-tree verification.
Sourcepub fn with_log_verification(self, enabled: bool) -> VerifyConfig
pub fn with_log_verification(self, enabled: bool) -> VerifyConfig
Enable log file verification.
Sourcepub fn with_checksum_verification(self, enabled: bool) -> VerifyConfig
pub fn with_checksum_verification(self, enabled: bool) -> VerifyConfig
Enable data checksum verification.
Sourcepub fn with_repair(self, enabled: bool) -> VerifyConfig
pub fn with_repair(self, enabled: bool) -> VerifyConfig
Enable repair mode.
Sourcepub fn with_max_errors(self, max: u32) -> VerifyConfig
pub fn with_max_errors(self, max: u32) -> VerifyConfig
Set maximum number of errors.
Sourcepub fn with_verbose(self, enabled: bool) -> VerifyConfig
pub fn with_verbose(self, enabled: bool) -> VerifyConfig
Enable verbose output.
Sourcepub fn for_database(self, name: String) -> VerifyConfig
pub fn for_database(self, name: String) -> VerifyConfig
Verify only a specific database.
Trait Implementations§
Source§impl Clone for VerifyConfig
impl Clone for VerifyConfig
Source§fn clone(&self) -> VerifyConfig
fn clone(&self) -> VerifyConfig
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 VerifyConfig
impl Debug for VerifyConfig
Source§impl Default for VerifyConfig
impl Default for VerifyConfig
Source§fn default() -> VerifyConfig
fn default() -> VerifyConfig
Returns the “default value” for a type. Read more
impl Eq for VerifyConfig
Source§impl PartialEq for VerifyConfig
impl PartialEq for VerifyConfig
Source§fn eq(&self, other: &VerifyConfig) -> bool
fn eq(&self, other: &VerifyConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VerifyConfig
Auto Trait Implementations§
impl Freeze for VerifyConfig
impl RefUnwindSafe for VerifyConfig
impl Send for VerifyConfig
impl Sync for VerifyConfig
impl Unpin for VerifyConfig
impl UnsafeUnpin for VerifyConfig
impl UnwindSafe for VerifyConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.