pub struct TestCore { /* private fields */ }Expand description
Deterministic Core for tests: virtual clock + seeded RNG, no real sleeps.
Implementations§
Source§impl TestCore
impl TestCore
pub fn new(clock: ManualClock) -> Self
pub fn with_seed(clock: ManualClock, seed: u64) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TestCore
impl RefUnwindSafe for TestCore
impl Send for TestCore
impl Sync for TestCore
impl Unpin for TestCore
impl UnsafeUnpin for TestCore
impl UnwindSafe for TestCore
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