pub struct FaultRule {
pub fault_type: FaultType,
pub rate: f64,
}Expand description
A single fault rule: a fault type and the probability of it firing (0.0–1.0).
Fields§
§fault_type: FaultType§rate: f64Probability [0.0, 1.0] that this fault fires on a given request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FaultRule
impl RefUnwindSafe for FaultRule
impl Send for FaultRule
impl Sync for FaultRule
impl Unpin for FaultRule
impl UnwindSafe for FaultRule
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).