pub struct FsFaultRule {
pub path: String,
pub op: FsOp,
pub error: FsError,
pub after_bytes: u64,
pub probability: f64,
}Expand description
A single filesystem fault rule.
Fields§
§path: StringGlob pattern for matching file paths (e.g. "*.wal", "/data/**").
op: FsOpWhich operation to fault.
error: FsErrorWhat error to inject.
after_bytes: u64Inject error after this many bytes have been written (0 = immediately).
probability: f64Probability of fault injection per operation [0.0, 1.0].
Trait Implementations§
Source§impl Clone for FsFaultRule
impl Clone for FsFaultRule
Source§fn clone(&self) -> FsFaultRule
fn clone(&self) -> FsFaultRule
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 FsFaultRule
impl Debug for FsFaultRule
Source§impl<'de> Deserialize<'de> for FsFaultRule
impl<'de> Deserialize<'de> for FsFaultRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FsFaultRule
impl PartialEq for FsFaultRule
Source§impl Serialize for FsFaultRule
impl Serialize for FsFaultRule
impl StructuralPartialEq for FsFaultRule
Auto Trait Implementations§
impl Freeze for FsFaultRule
impl RefUnwindSafe for FsFaultRule
impl Send for FsFaultRule
impl Sync for FsFaultRule
impl Unpin for FsFaultRule
impl UnsafeUnpin for FsFaultRule
impl UnwindSafe for FsFaultRule
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