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