Skip to main content

SessionStore

Trait SessionStore 

Source
pub trait SessionStore: Send + Sync {
    // Required method
    fn get_session<'life0, 'async_trait>(
        &'life0 self,
        session_id: SessionId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ExecutionSession>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Narrow session-loading seam for turn execution (EVE-872, EVE-882).

Implementations project their stored session records into the portable ExecutionSession — the session correlation values, per-session configuration layer, and neutral execution state a turn consumes. The persisted Session aggregate (facets, participants, ownership summaries, timestamps, UI metadata) lives in everruns-platform and never crosses this boundary.

Required Methods§

Source

fn get_session<'life0, 'async_trait>( &'life0 self, session_id: SessionId, ) -> Pin<Box<dyn Future<Output = Result<Option<ExecutionSession>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the portable execution view for a session by ID.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: SessionStore + ?Sized> SessionStore for Arc<T>

Source§

fn get_session<'life0, 'async_trait>( &'life0 self, session_id: SessionId, ) -> Pin<Box<dyn Future<Output = Result<Option<ExecutionSession>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§