pub struct RecoveryHarness<T, F>where
F: FnMut() -> T,{ /* private fields */ }Expand description
Reconstructs runtime state from one factory while preserving external fixtures such as stores, fault counters, and cassette servers.
Implementations§
Source§impl<T, F> RecoveryHarness<T, F>where
F: FnMut() -> T,
impl<T, F> RecoveryHarness<T, F>where
F: FnMut() -> T,
Sourcepub fn new(factory: F, controller: FaultController) -> Self
pub fn new(factory: F, controller: FaultController) -> Self
Constructs the first runtime instance.
Sourcepub fn current_mut(&mut self) -> &mut T
pub fn current_mut(&mut self) -> &mut T
Returns the active runtime fixture mutably.
Auto Trait Implementations§
impl<T, F> Freeze for RecoveryHarness<T, F>
impl<T, F> RefUnwindSafe for RecoveryHarness<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for RecoveryHarness<T, F>
impl<T, F> Sync for RecoveryHarness<T, F>
impl<T, F> Unpin for RecoveryHarness<T, F>
impl<T, F> UnsafeUnpin for RecoveryHarness<T, F>where
T: UnsafeUnpin,
F: UnsafeUnpin,
impl<T, F> UnwindSafe for RecoveryHarness<T, F>where
T: UnwindSafe,
F: UnwindSafe,
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