pub trait SessionStore: Send + Sync {
// Required methods
fn save(&self, session_id: &str, data: &SessionData) -> Result<()>;
fn load(&self, session_id: &str) -> Result<Option<SessionData>>;
fn list(&self, agent_id: &str) -> Result<Vec<SessionMeta>>;
fn delete(&self, session_id: &str) -> Result<()>;
}Required Methods§
fn save(&self, session_id: &str, data: &SessionData) -> Result<()>
fn load(&self, session_id: &str) -> Result<Option<SessionData>>
fn list(&self, agent_id: &str) -> Result<Vec<SessionMeta>>
fn delete(&self, session_id: &str) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".