Skip to main content

TurnEnginePort

Trait TurnEnginePort 

Source
pub trait TurnEnginePort: Send + Sync {
    // Required methods
    fn start_turn<'life0, 'async_trait>(
        &'life0 self,
        params: StartTurnParams,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn cancel_active_turn(&self);
}
Expand description

Minimal surface RuntimeThreadManager needs to drive a turn.

Required Methods§

Source

fn start_turn<'life0, 'async_trait>( &'life0 self, params: StartTurnParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn cancel_active_turn(&self)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<P, R> TurnEnginePort for EngineHandle<P, R>
where P: Send + Sync + 'static, R: Send + Sync + 'static,