pub struct TokioStorageProvider;Expand description
Real Tokio storage implementation.
Implementations§
Trait Implementations§
Source§impl Clone for TokioStorageProvider
impl Clone for TokioStorageProvider
Source§fn clone(&self) -> TokioStorageProvider
fn clone(&self) -> TokioStorageProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokioStorageProvider
impl Debug for TokioStorageProvider
Source§impl Default for TokioStorageProvider
impl Default for TokioStorageProvider
Source§impl StorageProvider for TokioStorageProvider
impl StorageProvider for TokioStorageProvider
Source§type File = TokioStorageFile
type File = TokioStorageFile
The file type for this provider.
Source§fn open<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
options: OpenOptions,
) -> Pin<Box<dyn Future<Output = Result<Self::File>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
options: OpenOptions,
) -> Pin<Box<dyn Future<Output = Result<Self::File>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Open a file with the given options.
Source§fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if a file exists at the given path.
Auto Trait Implementations§
impl Freeze for TokioStorageProvider
impl RefUnwindSafe for TokioStorageProvider
impl Send for TokioStorageProvider
impl Sync for TokioStorageProvider
impl Unpin for TokioStorageProvider
impl UnsafeUnpin for TokioStorageProvider
impl UnwindSafe for TokioStorageProvider
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