pub struct SimStorage { /* private fields */ }Expand description
Simulated storage for DST testing.
TigerStyle:
- In-memory HashMap storage
- Fault injection at every operation
- Full statistics tracking
- Shared FaultInjector via Arc (Kelpie pattern)
Implementations§
Source§impl SimStorage
impl SimStorage
Sourcepub fn new(
clock: SimClock,
rng: DeterministicRng,
faults: Arc<FaultInjector>,
) -> Self
pub fn new( clock: SimClock, rng: DeterministicRng, faults: Arc<FaultInjector>, ) -> Self
Create a new simulated storage.
TigerStyle: Takes Arc
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SimStorage
impl RefUnwindSafe for SimStorage
impl Send for SimStorage
impl Sync for SimStorage
impl Unpin for SimStorage
impl UnwindSafe for SimStorage
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