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<ResourceContent>>> + 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<ResourceContent>>> + 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