Struct anni_provider::cache::CacheProvider
source · pub struct CacheProvider<T>where
T: AnniProvider + Send,{ /* private fields */ }Implementations§
source§impl<T> CacheProvider<T>where
T: AnniProvider + Send,
impl<T> CacheProvider<T>where
T: AnniProvider + Send,
Trait Implementations§
source§impl<T> AnniProvider for CacheProvider<T>where
T: AnniProvider + Send,
impl<T> AnniProvider for CacheProvider<T>where
T: AnniProvider + Send,
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
Auto Trait Implementations§
impl<T> !RefUnwindSafe for CacheProvider<T>
impl<T> Send for CacheProvider<T>
impl<T> Sync for CacheProvider<T>
impl<T> Unpin for CacheProvider<T>where
T: Unpin,
impl<T> !UnwindSafe for CacheProvider<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more