pub trait AsyncPlatform: Platform {
    // Required methods
    fn setup<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn tick<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        system: &'life1 mut Box<dyn System>
    ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A platform which can be run asynchronously.

Required Methods§

source

fn setup<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Set up this platform for use.

source

fn tick<'life0, 'life1, 'async_trait>( &'life0 mut self, system: &'life1 mut Box<dyn System> ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Execute one “step” of this platform. A step is implementation-defined.

Implementors§