pub struct FileResourceHandler { /* private fields */ }Expand description
File-based resource handler
Implementations§
Trait Implementations§
Source§impl ResourceHandler for FileResourceHandler
impl ResourceHandler for FileResourceHandler
Source§fn resource<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Resource> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resource<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Resource> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the resource information
Source§fn read<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceContent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceContent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the resource content
Source§fn supports_subscription(&self) -> bool
fn supports_subscription(&self) -> bool
Check if the resource supports subscriptions
Auto Trait Implementations§
impl Freeze for FileResourceHandler
impl RefUnwindSafe for FileResourceHandler
impl Send for FileResourceHandler
impl Sync for FileResourceHandler
impl Unpin for FileResourceHandler
impl UnsafeUnpin for FileResourceHandler
impl UnwindSafe for FileResourceHandler
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