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 { ... }
}