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§

source

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

source

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

source

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

source

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,

Get audio info: (extension ,size)

source

fn reload<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Reload

Provided Methods§

source

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,

Implementors§