Skip to main content

ModelSession

Trait ModelSession 

Source
pub trait ModelSession: Send {
    type Turn: ModelTurn;

    // Required method
    fn begin_turn<'life0, 'async_trait>(
        &'life0 mut self,
        request: TurnRequest,
        cancellation: Option<TurnCancellation>,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Turn, LoopError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn begin_turn<'life0, 'async_trait>( &'life0 mut self, request: TurnRequest, cancellation: Option<TurnCancellation>, ) -> Pin<Box<dyn Future<Output = Result<Self::Turn, LoopError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§