pub struct PrivatePathDurabilityFailureInjector { /* private fields */ }Expand description
Cloneable, one-shot fault injector for first-use private-path durability.
This is deliberately explicit and passed only by tests/configured stores; production callers use the ordinary helpers and cannot be affected by process-global state.
Implementations§
Source§impl PrivatePathDurabilityFailureInjector
impl PrivatePathDurabilityFailureInjector
Sourcepub fn fail_next(&self, point: PrivatePathDurabilityFailurePoint)
pub fn fail_next(&self, point: PrivatePathDurabilityFailurePoint)
Fail the next matching durability boundary exactly once.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrivatePathDurabilityFailureInjector
impl RefUnwindSafe for PrivatePathDurabilityFailureInjector
impl Send for PrivatePathDurabilityFailureInjector
impl Sync for PrivatePathDurabilityFailureInjector
impl Unpin for PrivatePathDurabilityFailureInjector
impl UnsafeUnpin for PrivatePathDurabilityFailureInjector
impl UnwindSafe for PrivatePathDurabilityFailureInjector
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