pub struct TextResource { /* private fields */ }
Expand description
Simple text resource
Implementationsยง
Trait Implementationsยง
Sourceยงimpl ResourceHandler for TextResource
impl ResourceHandler for TextResource
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 Freeze for TextResource
impl RefUnwindSafe for TextResource
impl Send for TextResource
impl Sync for TextResource
impl Unpin for TextResource
impl UnwindSafe for TextResource
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