pub struct CorruptOptions {
pub file: String,
pub page: Option<u64>,
pub bytes: usize,
pub header: bool,
pub records: bool,
pub offset: Option<u64>,
pub verify: bool,
pub json: bool,
pub page_size: Option<u32>,
pub mmap: bool,
pub audit_logger: Option<Arc<AuditLogger>>,
}Expand description
Options for the inno corrupt subcommand.
Fields§
§file: StringPath to the InnoDB tablespace file (.ibd).
page: Option<u64>Page number to corrupt (random page chosen when not specified).
bytes: usizeNumber of random bytes to write.
header: boolTarget the FIL header area (first 38 bytes of the page).
records: boolTarget the record data area (after page header, before trailer).
offset: Option<u64>Absolute byte offset to corrupt (bypasses page calculation).
verify: boolShow before/after checksum comparison.
json: boolEmit output as JSON.
page_size: Option<u32>Override the auto-detected page size.
mmap: boolUse memory-mapped I/O for file access.
audit_logger: Option<Arc<AuditLogger>>Audit logger for recording write operations.
Auto Trait Implementations§
impl Freeze for CorruptOptions
impl RefUnwindSafe for CorruptOptions
impl Send for CorruptOptions
impl Sync for CorruptOptions
impl Unpin for CorruptOptions
impl UnsafeUnpin for CorruptOptions
impl UnwindSafe for CorruptOptions
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> 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