pub trait SessionImpl: Send + Sync {
// Required method
fn session_closed<'life0, 'async_trait>(
&'life0 self,
session_token: HandleToken,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Available on crate feature
backend only.Expand description
A trait that backends that create long-lived sessions should implement to be notified when a session has been closed.