pub struct MemorySessionStoreAdapter { /* private fields */ }Expand description
In-memory session store adapter for MCP resources
Implementations§
Trait Implementations§
Source§impl Default for MemorySessionStoreAdapter
impl Default for MemorySessionStoreAdapter
Source§impl SessionStoreRead for MemorySessionStoreAdapter
impl SessionStoreRead for MemorySessionStoreAdapter
Source§fn list_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all session IDs
Source§fn load_json<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_json<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load a session by ID and return as JSON
Source§fn get_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<SessionMetadata>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<SessionMetadata>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get session metadata (id, user_id, created_at, updated_at, message_count)
Auto Trait Implementations§
impl !Freeze for MemorySessionStoreAdapter
impl !RefUnwindSafe for MemorySessionStoreAdapter
impl Send for MemorySessionStoreAdapter
impl Sync for MemorySessionStoreAdapter
impl Unpin for MemorySessionStoreAdapter
impl UnsafeUnpin for MemorySessionStoreAdapter
impl UnwindSafe for MemorySessionStoreAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more