pub struct FileSystemProvider { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl ResourceProvider for FileSystemProvider
impl ResourceProvider for FileSystemProvider
Source§fn list_resources<'life0, 'async_trait>(
&'life0 self,
_cursor: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Resource>, Option<String>), McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_resources<'life0, 'async_trait>(
&'life0 self,
_cursor: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Resource>, Option<String>), McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List available resources
Source§fn read_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceContent>, McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceContent>, McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read resource contents
Source§fn list_templates<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceTemplate>, McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_templates<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceTemplate>, McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List available templates
Auto Trait Implementations§
impl Freeze for FileSystemProvider
impl RefUnwindSafe for FileSystemProvider
impl Send for FileSystemProvider
impl Sync for FileSystemProvider
impl Unpin for FileSystemProvider
impl UnwindSafe for FileSystemProvider
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