pub struct Executor { /* private fields */ }
Expand description
Deterministic runtime that randomly selects tasks to run based on a seed.
Implementations§
Source§impl Executor
impl Executor
Sourcepub fn init(cfg: Config) -> (Runner, Context, Arc<Auditor>)
pub fn init(cfg: Config) -> (Runner, Context, Arc<Auditor>)
Initialize a new deterministic
runtime with the given seed and cycle duration.
Sourcepub fn seeded(seed: u64) -> (Runner, Context, Arc<Auditor>)
pub fn seeded(seed: u64) -> (Runner, Context, Arc<Auditor>)
Initialize a new deterministic
runtime with the default configuration
and the provided seed.
Auto Trait Implementations§
impl !Freeze for Executor
impl !RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl !UnwindSafe for Executor
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