pub struct LastFM<'a> { /* private fields */ }Implementations§
Source§impl<'a> LastFM<'a>
impl<'a> LastFM<'a>
pub fn new(storage: &'a Storage) -> Self
pub fn request_auth(&mut self) -> Result<String, String>
pub fn session(&mut self) -> Result<LastFMSession, String>
pub fn recent_tracks(&self, username: &str) -> Result<Vec<RecentTrack>, String>
pub fn album_info(&self, artist: &str, album: &str) -> Result<AlbumInfo, String>
pub fn scrobble_track( &self, payload: ScrobbleTrackPayload, ) -> Result<TrackScrobblingResult, String>
Auto Trait Implementations§
impl<'a> Freeze for LastFM<'a>
impl<'a> RefUnwindSafe for LastFM<'a>
impl<'a> !Send for LastFM<'a>
impl<'a> !Sync for LastFM<'a>
impl<'a> Unpin for LastFM<'a>
impl<'a> UnwindSafe for LastFM<'a>
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