pub struct LastFmApiClientImpl { /* private fields */ }Implementations§
Source§impl LastFmApiClientImpl
impl LastFmApiClientImpl
pub fn new( client: Box<dyn HttpClient + Send + Sync>, username: String, api_key: String, ) -> Self
pub fn subscribe(&self) -> ClientEventReceiver
pub fn latest_event(&self) -> Option<ClientEvent>
pub fn username(&self) -> &str
pub fn recent_tracks(&self) -> Box<dyn AsyncPaginatedIterator<Track>>
pub fn recent_tracks_from_page( &self, starting_page: u32, ) -> Box<dyn AsyncPaginatedIterator<Track>>
Trait Implementations§
Source§impl Clone for LastFmApiClientImpl
impl Clone for LastFmApiClientImpl
Source§fn clone(&self) -> LastFmApiClientImpl
fn clone(&self) -> LastFmApiClientImpl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LastFmApiClientImpl
impl !RefUnwindSafe for LastFmApiClientImpl
impl Send for LastFmApiClientImpl
impl Sync for LastFmApiClientImpl
impl Unpin for LastFmApiClientImpl
impl UnsafeUnpin for LastFmApiClientImpl
impl !UnwindSafe for LastFmApiClientImpl
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