pub trait SessionManager {
// Required methods
fn create_session(&self) -> String;
fn touch_session(&self, id: &str);
fn session_exists(&self, id: &str) -> bool;
}Expand description
Session manager trait for managing MCP sessions.
Required Methods§
Sourcefn create_session(&self) -> String
fn create_session(&self) -> String
Create a new session.
Sourcefn touch_session(&self, id: &str)
fn touch_session(&self, id: &str)
Touch a session to update its last seen time.
Sourcefn session_exists(&self, id: &str) -> bool
fn session_exists(&self, id: &str) -> bool
Check if a session exists.