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§
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
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.