atrium_api::agent::store

Trait SessionStore

Source
pub trait SessionStore: Send {
    // Required methods
    fn get_session(&self) -> impl Future<Output = Option<Session>> + Send;
    fn set_session(&self, session: Session) -> impl Future<Output = ()> + Send;
    fn clear_session(&self) -> impl Future<Output = ()> + Send;
}
Available on crate feature agent only.

Required Methods§

Source

fn get_session(&self) -> impl Future<Output = Option<Session>> + Send

Source

fn set_session(&self, session: Session) -> impl Future<Output = ()> + Send

Source

fn clear_session(&self) -> impl Future<Output = ()> + Send

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§