pub enum FlakeyFeatureArg {
DropWrites,
ErrorWrites,
CorruptBioByte(u64, Direction, u8, u64),
}Expand description
Flakey target optional feature parameters: If no feature parameters are present, during the periods of unreliability, all I/O returns errors.
Variants§
DropWrites
drop_writes:
All write I/O is silently ignored. Read I/O is handled correctly.
ErrorWrites
error_writes:
All write I/O is failed with an error signalled. Read I/O is handled correctly.
CorruptBioByte(u64, Direction, u8, u64)
corrupt_bio_byte <Nth_byte> <direction> <value> <flags>:
During <down interval>, replace <Nth_byte> of the data of
each matching bio with <value>.
<Nth_byte>: The offset of the byte to replace. Counting starts at 1, to replace the first byte.<direction>: Either ‘r’ to corrupt reads or ‘w’ to corrupt writes. ‘w’ is incompatible with drop_writes.<value>: The value (from 0-255) to write.<flags>: Perform the replacement only ifbio->bi_opfhas all the selected flags set.
Trait Implementations§
Source§impl Clone for FlakeyFeatureArg
impl Clone for FlakeyFeatureArg
Source§fn clone(&self) -> FlakeyFeatureArg
fn clone(&self) -> FlakeyFeatureArg
Returns a duplicate of the value. Read more
1.0.0 · 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 FlakeyFeatureArg
impl Debug for FlakeyFeatureArg
Source§impl Display for FlakeyFeatureArg
impl Display for FlakeyFeatureArg
Source§impl Hash for FlakeyFeatureArg
impl Hash for FlakeyFeatureArg
Source§impl PartialEq for FlakeyFeatureArg
impl PartialEq for FlakeyFeatureArg
impl Eq for FlakeyFeatureArg
impl StructuralPartialEq for FlakeyFeatureArg
Auto Trait Implementations§
impl Freeze for FlakeyFeatureArg
impl RefUnwindSafe for FlakeyFeatureArg
impl Send for FlakeyFeatureArg
impl Sync for FlakeyFeatureArg
impl Unpin for FlakeyFeatureArg
impl UnwindSafe for FlakeyFeatureArg
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