pub struct Executor { /* private fields */ }Expand description
Single-threaded executor
This is a thin-wrapper (using Rc) around the real executor, so that this
struct can be cloned and passed around.
See the module documentation for more details.
Implementations§
Source§impl Executor
impl Executor
pub fn run(&self, finished: &Rc<RefCell<bool>>) -> SimResult
pub fn step(&self, finished: &Rc<RefCell<bool>>) -> SimResult
pub fn get_clock(&self, freq_mhz: f64) -> Clock
pub fn time_now_ns(&self) -> f64
pub fn set_randomize_task_order(&self, randomize: bool)
pub fn set_task_order_seed(&self, seed: u64)
Trait Implementations§
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