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>,
}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.
Auto Trait Implementations§
impl Freeze for CorruptOptions
impl RefUnwindSafe for CorruptOptions
impl Send for CorruptOptions
impl Sync for CorruptOptions
impl Unpin 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