Skip to main content

SessionInfoProvider

Trait SessionInfoProvider 

Source
pub trait SessionInfoProvider:
    Clone
    + Send
    + Sync {
    // Required method
    fn get_session_info<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<SessionInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for providing session information to the dashboard

This is a read-only subset focused on displaying session data. For full session control including admin actions, see the SessionController trait in hotfix-http.

Required Methods§

Source

fn get_session_info<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<SessionInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§