pub struct Config {
pub registry: Arc<Mutex<Registry>>,
pub seed: u64,
pub cycle: 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.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)