pub struct CallFaultControl { /* private fields */ }Expand description
Arms and reads a CallFaults from any thread.
Implementations§
Source§impl CallFaultControl
impl CallFaultControl
Sourcepub fn fail_next(&self, call: Call, count: u32, failure: InjectedFailure)
pub fn fail_next(&self, call: Call, count: u32, failure: InjectedFailure)
Fail the next count calls of call with failure, then reach the kernel again. A
count of zero clears call.
§Panics
If failure is not a failing HRESULT, which only InjectedFailure::Hresult can
express: this seam injects failure, never success.
Sourcepub fn fail_until_cleared(&self, call: Call, failure: InjectedFailure)
pub fn fail_until_cleared(&self, call: Call, failure: InjectedFailure)
Sourcepub fn fail_next_completions(&self, count: u32, failure: InjectedFailure)
pub fn fail_next_completions(&self, count: u32, failure: InjectedFailure)
Sourcepub fn stall_submits(&self, duration: Duration)
pub fn stall_submits(&self, duration: Duration)
Stall submits for duration, from the first submit stalled: each returns without reaching
the kernel, so what is queued stays pending, until duration has passed and submits reach
the kernel and run it. A duration of zero clears.
Trait Implementations§
Source§impl Clone for CallFaultControl
impl Clone for CallFaultControl
Auto Trait Implementations§
impl Freeze for CallFaultControl
impl RefUnwindSafe for CallFaultControl
impl Send for CallFaultControl
impl Sync for CallFaultControl
impl Unpin for CallFaultControl
impl UnsafeUnpin for CallFaultControl
impl UnwindSafe for CallFaultControl
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