pub trait ModelAdapter: Send + Sync {
type Session: ModelSession;
// Required method
fn start_session<'life0, 'async_trait>(
&'life0 self,
config: SessionConfig,
) -> Pin<Box<dyn Future<Output = Result<Self::Session, LoopError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}