pub struct LegacyResourceAdapter<T> { /* private fields */ }
Expand description
Adapter to convert LegacyResourceHandler to ResourceHandler
Implementations§
Source§impl<T> LegacyResourceAdapter<T>where
T: LegacyResourceHandler,
impl<T> LegacyResourceAdapter<T>where
T: LegacyResourceHandler,
Trait Implementations§
Source§impl<T> ResourceHandler for LegacyResourceAdapter<T>
impl<T> ResourceHandler for LegacyResourceAdapter<T>
Source§fn read<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
uri: &'life1 str,
_params: &'life2 HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = McpResult<Vec<ResourceContents>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn read<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
uri: &'life1 str,
_params: &'life2 HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = McpResult<Vec<ResourceContents>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Read the content of a resource Read more
Source§fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = McpResult<Vec<ResourceInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = McpResult<Vec<ResourceInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all available resources Read more
Auto Trait Implementations§
impl<T> Freeze for LegacyResourceAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for LegacyResourceAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for LegacyResourceAdapter<T>where
T: Send,
impl<T> Sync for LegacyResourceAdapter<T>where
T: Sync,
impl<T> Unpin for LegacyResourceAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for LegacyResourceAdapter<T>where
T: UnwindSafe,
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