pub trait SessionLifecycleService: Send + Sync {
// Provided methods
fn create_session<'life0, 'async_trait>(
&'life0 self,
_request: SessionCreateRequest,
) -> Pin<Box<dyn Future<Output = Result<SessionHandle, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn close_session<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), PluginError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn start_turn<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: SessionTurnRequest<'life1>,
) -> Pin<Box<dyn Future<Output = Result<AssembledTurn, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Provided Methods§
fn create_session<'life0, 'async_trait>(
&'life0 self,
_request: SessionCreateRequest,
) -> Pin<Box<dyn Future<Output = Result<SessionHandle, PluginError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close_session<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), PluginError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start_turn<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: SessionTurnRequest<'life1>,
) -> Pin<Box<dyn Future<Output = Result<AssembledTurn, PluginError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".