pub struct TokioFileSystem;Expand description
Production AsyncFileSystem backed by tokio::fs.
Implementations§
Trait Implementations§
Source§impl AsyncFileSystem for TokioFileSystem
impl AsyncFileSystem for TokioFileSystem
Source§fn create_dir_all<'a>(&'a self, path: &'a Path) -> BoxFuture<'a, Result<()>>
fn create_dir_all<'a>(&'a self, path: &'a Path) -> BoxFuture<'a, Result<()>>
Async variant of
FileSystem::create_dir_all.Source§fn remove_dir_all<'a>(&'a self, path: &'a Path) -> BoxFuture<'a, Result<()>>
fn remove_dir_all<'a>(&'a self, path: &'a Path) -> BoxFuture<'a, Result<()>>
Async variant of
FileSystem::remove_dir_all.Source§fn try_exists<'a>(&'a self, path: &'a Path) -> BoxFuture<'a, Result<bool>>
fn try_exists<'a>(&'a self, path: &'a Path) -> BoxFuture<'a, Result<bool>>
Async variant of
FileSystem::try_exists.Source§fn open_read<'a>(
&'a self,
path: &'a Path,
) -> BoxFuture<'a, Result<Box<dyn AsyncFileRead>>>
fn open_read<'a>( &'a self, path: &'a Path, ) -> BoxFuture<'a, Result<Box<dyn AsyncFileRead>>>
Async variant of
FileSystem::open_read.Source§fn open_write<'a>(
&'a self,
path: &'a Path,
) -> BoxFuture<'a, Result<Box<dyn AsyncFileWrite>>>
fn open_write<'a>( &'a self, path: &'a Path, ) -> BoxFuture<'a, Result<Box<dyn AsyncFileWrite>>>
Async variant of
FileSystem::open_write.Source§impl Clone for TokioFileSystem
impl Clone for TokioFileSystem
Source§fn clone(&self) -> TokioFileSystem
fn clone(&self) -> TokioFileSystem
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 TokioFileSystem
impl Debug for TokioFileSystem
Source§impl Default for TokioFileSystem
impl Default for TokioFileSystem
Source§fn default() -> TokioFileSystem
fn default() -> TokioFileSystem
Returns the “default value” for a type. Read more
impl Copy for TokioFileSystem
Auto Trait Implementations§
impl Freeze for TokioFileSystem
impl RefUnwindSafe for TokioFileSystem
impl Send for TokioFileSystem
impl Sync for TokioFileSystem
impl Unpin for TokioFileSystem
impl UnsafeUnpin for TokioFileSystem
impl UnwindSafe for TokioFileSystem
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