pub struct ArtistTracksIterator<C: LastFmEditClient> { /* private fields */ }Expand description
Iterator for browsing an artist’s tracks from a user’s library.
This iterator provides access to all tracks by a specific artist in the authenticated user’s Last.fm library. Unlike the basic track listing, this iterator fetches tracks by iterating through the artist’s albums first, which provides complete album information for each track.
The iterator loads albums and their tracks as needed and handles rate limiting automatically to be respectful to Last.fm’s servers.
Implementations§
Source§impl<C: LastFmEditClient + Clone> ArtistTracksIterator<C>
impl<C: LastFmEditClient + Clone> ArtistTracksIterator<C>
Sourcepub fn new(client: C, artist: String) -> Self
pub fn new(client: C, artist: String) -> Self
Create a new artist tracks iterator.
This is typically called via LastFmEditClient::artist_tracks.
Trait Implementations§
Source§impl<C: LastFmEditClient + Clone> AsyncPaginatedIterator<Track> for ArtistTracksIterator<C>
impl<C: LastFmEditClient + Clone> AsyncPaginatedIterator<Track> for ArtistTracksIterator<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
Auto Trait Implementations§
impl<C> Freeze for ArtistTracksIterator<C>where
C: Freeze,
impl<C> RefUnwindSafe for ArtistTracksIterator<C>where
C: RefUnwindSafe,
impl<C> Send for ArtistTracksIterator<C>where
C: Send,
impl<C> Sync for ArtistTracksIterator<C>where
C: Sync,
impl<C> Unpin for ArtistTracksIterator<C>where
C: Unpin,
impl<C> UnwindSafe for ArtistTracksIterator<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