pub struct Host { /* private fields */ }Implementations§
Source§impl Host
impl Host
pub fn new( engine: Engine, memory: SharedMemory, interface: SimulatorInterface, module: Module, ) -> Result<Self>
Trait Implementations§
Source§impl HostCtx for Host
impl HostCtx for Host
fn memory(&self) -> SharedMemory
fn module(&self) -> Module
fn interface(&self) -> SimulatorInterface
fn lcd(&self) -> Arc<Mutex<Lcd>>
fn lcd_lock<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MutexGuard<'_, Lcd>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn mutexes(&self) -> Arc<Mutex<MutexPool>>
fn mutexes_lock<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MutexGuard<'_, MutexPool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn tasks(&self) -> Arc<Mutex<TaskPool>>
fn tasks_lock<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MutexGuard<'_, TaskPool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_time(&self) -> Instant
fn current_task<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = TaskHandle> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn controllers(&self) -> Arc<Mutex<Controllers>>
fn controllers_lock<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MutexGuard<'_, Controllers>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn competition_phase(&self) -> Arc<Mutex<CompetitionPhase>>
fn competition_phase_lock<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MutexGuard<'_, CompetitionPhase>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for Host
impl !RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl !UnwindSafe for Host
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more