pub struct Engine {
pub executor: Executor,
/* private fields */
}Fields§
§executor: ExecutorImplementations§
Source§impl Engine
impl Engine
Sourcepub fn register(&self, component: Component)
pub fn register(&self, component: Component)
Register a component that will be run as the simulation starts
pub fn run(&mut self) -> SimResult
pub fn run_until<T: Default + Copy + 'static>( &mut self, event: Eventable<T>, ) -> SimResult
pub fn spawner(&self) -> Spawner
pub fn spawn(&self, future: impl Future<Output = SimResult> + 'static)
pub fn default_clock(&mut self) -> Clock
pub fn clock_mhz(&mut self, freq_mhz: f64) -> Clock
pub fn clock_ghz(&mut self, freq_ghz: f64) -> Clock
pub fn time_now_ns(&self) -> f64
pub fn top(&self) -> &Rc<Entity>
pub fn tracker(&self) -> Tracker
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Engine
impl !RefUnwindSafe for Engine
impl !Send for Engine
impl !Sync for Engine
impl Unpin for Engine
impl !UnwindSafe for Engine
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