pub trait FileSystemProvider: Sync {
    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
; 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§

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

Get file reader

Get audio info: (extension ,size)

Reload

Provided Methods§

Implementors§