pub enum InjectionMode {
Pass,
DropEvery(u32),
Fail(String),
}Variants§
Pass
Pass through unchanged.
DropEvery(u32)
Drop every nth send (n>=1; 1 drops everything).
Fail(String)
Reply with a fixed TransportError on every send.
Trait Implementations§
Source§impl Clone for InjectionMode
impl Clone for InjectionMode
Source§fn clone(&self) -> InjectionMode
fn clone(&self) -> InjectionMode
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 moreAuto Trait Implementations§
impl Freeze for InjectionMode
impl RefUnwindSafe for InjectionMode
impl Send for InjectionMode
impl Sync for InjectionMode
impl Unpin for InjectionMode
impl UnsafeUnpin for InjectionMode
impl UnwindSafe for InjectionMode
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