pub struct Config {
pub registry: Arc<Mutex<Registry>>,
pub seed: u64,
pub cycle: Duration,
pub timeout: Option<Duration>,
}
Expand description
Configuration for the deterministic
runtime.
Fields§
§registry: Arc<Mutex<Registry>>
Registry for metrics.
seed: u64
Seed for the random number generator.
cycle: Duration
The cycle duration determines how much time is advanced after each iteration of the event loop. This is useful to prevent starvation if some task never yields.
timeout: Option<Duration>
If the runtime is still executing at this point (i.e. a test hasn’t stopped), panic.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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