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