pub struct InMemoryMCPContextServer { /* private fields */ }Implementations§
Source§impl InMemoryMCPContextServer
impl InMemoryMCPContextServer
pub fn new() -> Self
pub fn add_resource( &mut self, uri: &str, name: &str, mime_type: &str, reader: MCPResourceRead, )
pub fn list_resources(&self) -> Vec<State> ⓘ
pub fn read_resource(&self, uri: &str) -> Result<State>
Auto Trait Implementations§
impl Freeze for InMemoryMCPContextServer
impl RefUnwindSafe for InMemoryMCPContextServer
impl Send for InMemoryMCPContextServer
impl Sync for InMemoryMCPContextServer
impl Unpin for InMemoryMCPContextServer
impl UnsafeUnpin for InMemoryMCPContextServer
impl UnwindSafe for InMemoryMCPContextServer
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