pub trait FileSystemProvider: Sync {
// Required methods
fn children<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 PathBuf,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = FileEntry> + Send>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_file_entry_by_prefix<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
parent: &'life1 PathBuf,
prefix: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<FileEntry>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 PathBuf,
range: Range,
) -> Pin<Box<dyn Future<Output = Result<ResourceReader>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_audio_info<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 PathBuf,
) -> Pin<Box<dyn Future<Output = Result<(String, usize)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn reload<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn get_audio_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 PathBuf,
range: Range,
) -> Pin<Box<dyn Future<Output = Result<AudioResourceReader>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Required Methods§
Sourcefn children<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 PathBuf,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = FileEntry> + Send>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn children<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 PathBuf,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = FileEntry> + Send>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List sub folders
Sourcefn get_file_entry_by_prefix<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
parent: &'life1 PathBuf,
prefix: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<FileEntry>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_file_entry_by_prefix<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
parent: &'life1 PathBuf,
prefix: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<FileEntry>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get file entry in a folder with given prefix
Sourcefn get_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 PathBuf,
range: Range,
) -> Pin<Box<dyn Future<Output = Result<ResourceReader>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 PathBuf,
range: Range,
) -> Pin<Box<dyn Future<Output = Result<ResourceReader>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get file reader
Provided Methods§
fn get_audio_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 PathBuf,
range: Range,
) -> Pin<Box<dyn Future<Output = Result<AudioResourceReader>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".