pub struct ScrobblerError { /* private fields */ }
Expand description
Represents an Error that occurred while interacting with the Last.fm API
ScrobblerError
contains an error message, which is set when an error occurs and exposed via Trait standard error
Trait implementations.
Most error handling for clients can operate off the Ok
/Err
signaling from the Result
types of API operations,
however this error type is exposed in case you want to implement more complex error handling.
Implementations§
Trait Implementations§
Source§impl Debug for ScrobblerError
impl Debug for ScrobblerError
Source§impl Display for ScrobblerError
impl Display for ScrobblerError
Source§impl Error for ScrobblerError
impl Error for ScrobblerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<String> for ScrobblerError
impl From<String> for ScrobblerError
Source§impl From<SystemTimeError> for ScrobblerError
impl From<SystemTimeError> for ScrobblerError
Source§fn from(error: SystemTimeError) -> Self
fn from(error: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScrobblerError
impl RefUnwindSafe for ScrobblerError
impl Send for ScrobblerError
impl Sync for ScrobblerError
impl Unpin for ScrobblerError
impl UnwindSafe for ScrobblerError
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