Struct anni_provider::cache::Cache
source · pub struct Cache { /* private fields */ }Implementations§
Trait Implementations§
source§impl AnniProvider for Cache
impl AnniProvider for Cache
source§fn albums<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<HashSet<Cow<'_, str>>, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn albums<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<HashSet<Cow<'_, str>>, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get album information provided by provider.
source§fn get_audio_info<'life0, 'life1, 'async_trait>(
&'life0 self,
album_id: &'life1 str,
disc_id: NonZeroU8,
track_id: NonZeroU8
) -> Pin<Box<dyn Future<Output = Result<AudioInfo, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_audio_info<'life0, 'life1, 'async_trait>(
&'life0 self,
album_id: &'life1 str,
disc_id: NonZeroU8,
track_id: NonZeroU8
) -> Pin<Box<dyn Future<Output = Result<AudioInfo, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get audio info describing basic information of the audio file.
source§fn get_audio<'life0, 'life1, 'async_trait>(
&'life0 self,
album_id: &'life1 str,
disc_id: NonZeroU8,
track_id: NonZeroU8,
range: Range
) -> Pin<Box<dyn Future<Output = Result<AudioResourceReader, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_audio<'life0, 'life1, 'async_trait>(
&'life0 self,
album_id: &'life1 str,
disc_id: NonZeroU8,
track_id: NonZeroU8,
range: Range
) -> Pin<Box<dyn Future<Output = Result<AudioResourceReader, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns a reader implements AsyncRead for content reading
source§fn get_cover<'life0, 'life1, 'async_trait>(
&'life0 self,
album_id: &'life1 str,
disc_id: Option<NonZeroU8>
) -> Pin<Box<dyn Future<Output = Result<ResourceReader, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_cover<'life0, 'life1, 'async_trait>(
&'life0 self,
album_id: &'life1 str,
disc_id: Option<NonZeroU8>
) -> Pin<Box<dyn Future<Output = Result<ResourceReader, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns a cover of corresponding album