Skip to main content

TurnHost

Trait TurnHost 

Source
pub trait TurnHost: Send + Sync {
    // Required methods
    fn start_turn_stream<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_id: &'life1 str,
        input: TurnInput,
    ) -> Pin<Box<dyn Future<Output = Result<SessionTurnHandle, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn await_turn<'life0, 'life1, 'async_trait>(
        &'life0 self,
        turn_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<AssembledTurn, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn cancel_turn<'life0, 'life1, 'async_trait>(
        &'life0 self,
        turn_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided method
    fn start_turn<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_id: &'life1 str,
        input: TurnInput,
    ) -> Pin<Box<dyn Future<Output = Result<AssembledTurn, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

Source

fn start_turn_stream<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 str, input: TurnInput, ) -> Pin<Box<dyn Future<Output = Result<SessionTurnHandle, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn await_turn<'life0, 'life1, 'async_trait>( &'life0 self, turn_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<AssembledTurn, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn cancel_turn<'life0, 'life1, 'async_trait>( &'life0 self, turn_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn start_turn<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 str, input: TurnInput, ) -> Pin<Box<dyn Future<Output = Result<AssembledTurn, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§