pub struct AlbumTracksIterator<C: LastFmEditClient> { /* private fields */ }Expand description
Iterator for browsing tracks in a specific album from a user’s library.
This iterator provides access to all tracks in a specific album by an artist in the authenticated user’s Last.fm library. Unlike paginated iterators, this loads tracks once and iterates through them.
Implementations§
Source§impl<C: LastFmEditClient> AlbumTracksIterator<C>
impl<C: LastFmEditClient> AlbumTracksIterator<C>
Sourcepub fn new(client: C, album_name: String, artist_name: String) -> Self
pub fn new(client: C, album_name: String, artist_name: String) -> Self
Create a new album tracks iterator.
This is typically called via LastFmEditClient::album_tracks.
Trait Implementations§
Source§impl<C: LastFmEditClient> AsyncPaginatedIterator<Track> for AlbumTracksIterator<C>
impl<C: LastFmEditClient> AsyncPaginatedIterator<Track> for AlbumTracksIterator<C>
Source§fn next<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<Track>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<Track>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the next item from the iterator. Read more
Source§fn current_page(&self) -> u32
fn current_page(&self) -> u32
Get the current page number (0-indexed). Read more
Source§fn collect_all<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<T>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn collect_all<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<T>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Collect all remaining items into a Vec. Read more
Auto Trait Implementations§
impl<C> Freeze for AlbumTracksIterator<C>where
C: Freeze,
impl<C> RefUnwindSafe for AlbumTracksIterator<C>where
C: RefUnwindSafe,
impl<C> Send for AlbumTracksIterator<C>where
C: Send,
impl<C> Sync for AlbumTracksIterator<C>where
C: Sync,
impl<C> Unpin for AlbumTracksIterator<C>where
C: Unpin,
impl<C> UnwindSafe for AlbumTracksIterator<C>where
C: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more