pub struct SessionResourceHandler<S: SessionStoreRead> { /* private fields */ }Expand description
Resource handler for conversation sessions
Exposes sessions stored in a SessionStore as MCP resources.
Implementations§
Source§impl<S: SessionStoreRead> SessionResourceHandler<S>
impl<S: SessionStoreRead> SessionResourceHandler<S>
Sourcepub fn with_user_filter(self, user_id: impl Into<String>) -> Self
pub fn with_user_filter(self, user_id: impl Into<String>) -> Self
Filter sessions by user ID
Sourcepub fn with_max_list_size(self, size: usize) -> Self
pub fn with_max_list_size(self, size: usize) -> Self
Set maximum sessions to list
Trait Implementations§
Source§impl<S: SessionStoreRead + 'static> ResourceHandler for SessionResourceHandler<S>
impl<S: SessionStoreRead + 'static> ResourceHandler for SessionResourceHandler<S>
Source§fn list(&self) -> Vec<McpResource>
fn list(&self) -> Vec<McpResource>
List available resources
Auto Trait Implementations§
impl<S> Freeze for SessionResourceHandler<S>
impl<S> RefUnwindSafe for SessionResourceHandler<S>where
S: RefUnwindSafe,
impl<S> Send for SessionResourceHandler<S>
impl<S> Sync for SessionResourceHandler<S>
impl<S> Unpin for SessionResourceHandler<S>
impl<S> UnsafeUnpin for SessionResourceHandler<S>
impl<S> UnwindSafe for SessionResourceHandler<S>where
S: RefUnwindSafe,
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