pub struct StreamFaultSpec {
pub kind: StreamFaultKind,
pub count: usize,
}Expand description
A single fault to apply, paired with a repetition count.
Fields§
§kind: StreamFaultKindKind of fault to inject.
count: usizeNumber of items the fault affects (at least 1).
Implementations§
Source§impl StreamFaultSpec
impl StreamFaultSpec
Sourcepub fn new(kind: StreamFaultKind, count: usize) -> Self
pub fn new(kind: StreamFaultKind, count: usize) -> Self
Builds a fault spec, clamping count to a minimum of 1.
Trait Implementations§
Source§impl Clone for StreamFaultSpec
impl Clone for StreamFaultSpec
Source§fn clone(&self) -> StreamFaultSpec
fn clone(&self) -> StreamFaultSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamFaultSpec
impl Debug for StreamFaultSpec
impl Eq for StreamFaultSpec
Source§impl PartialEq for StreamFaultSpec
impl PartialEq for StreamFaultSpec
Source§fn eq(&self, other: &StreamFaultSpec) -> bool
fn eq(&self, other: &StreamFaultSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamFaultSpec
Auto Trait Implementations§
impl Freeze for StreamFaultSpec
impl RefUnwindSafe for StreamFaultSpec
impl Send for StreamFaultSpec
impl Sync for StreamFaultSpec
impl Unpin for StreamFaultSpec
impl UnsafeUnpin for StreamFaultSpec
impl UnwindSafe for StreamFaultSpec
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