Trait FileSystem
Source pub trait FileSystem:
Debug
+ Sync
+ Send {
// Required methods
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Utf8Path,
) -> Pin<Box<dyn Future<Output = FSResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Utf8Path,
) -> Pin<Box<dyn Future<Output = FSResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn ensure_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Utf8Path,
) -> Pin<Box<dyn Future<Output = FSResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn write_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Utf8Path,
) -> Pin<Box<dyn Future<Output = FSResult<Writer>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn read_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Utf8Path,
) -> Pin<Box<dyn Future<Output = FSResult<Reader>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn read_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Utf8Path,
) -> Pin<Box<dyn Future<Output = FSResult<HashSet<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Utf8Path,
) -> Pin<Box<dyn Future<Output = FSResult<FileMetadata>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Utf8Path,
) -> Pin<Box<dyn Future<Output = FSResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn move_file<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
from: &'life1 Utf8Path,
to: &'life2 Utf8Path,
) -> Pin<Box<dyn Future<Output = FSResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}