Add error documentation to ListenBrainz::playing_now

This commit is contained in:
Koen Bolhuis 2021-01-20 00:26:27 +01:00
parent 9ed9ebfe0f
commit f72ab1cbdf
1 changed files with 6 additions and 0 deletions

View File

@ -119,6 +119,12 @@ impl ListenBrainz {
}
/// Submit a currently playing track.
///
/// # Errors
///
/// If not authenticated, returns [`Error::NotAuthenticated`].
/// Otherwise, see the Errors section of [`Client`] for more info on
/// what errors might occur.
pub fn playing_now(&self, artist: &str, track: &str, release: &str) -> Result<(), Error> {
self.submit_listen(ListenType::PlayingNow, None, artist, track, release)
}