pub enum LibraryError {
NotFound(Subject),
Malformed(&'static str),
PlaylistChanged,
InvalidId(String),
SearchRefused(String),
Auth(AuthError),
}Expand description
Why a library request failed. Display is the message a user sees.
Variants§
NotFound(Subject)
404 with subStatus 2001 on the request’s own resource.
Malformed(&'static str)
A 2xx body that could not be read; never quotes the body.
PlaylistChanged
412 on a playlist edit (a second one, for an add).
InvalidId(String)
A track, album or artist ID that is not a number.
SearchRefused(String)
400 on a search, with Tidal’s userMessage (spec 0007).
Auth(AuthError)
From the Authenticator, unchanged: LoginRequired, transport
errors, unexpected statuses (5xx, 429, …).
Implementations§
Source§impl LibraryError
impl LibraryError
Trait Implementations§
Source§impl Clone for LibraryError
impl Clone for LibraryError
Source§impl Debug for LibraryError
impl Debug for LibraryError
Source§impl Display for LibraryError
impl Display for LibraryError
impl Eq for LibraryError
Source§impl Error for LibraryError
impl Error for LibraryError
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<AuthError> for LibraryError
impl From<AuthError> for LibraryError
Source§impl PartialEq for LibraryError
impl PartialEq for LibraryError
impl StructuralPartialEq for LibraryError
Auto Trait Implementations§
impl Freeze for LibraryError
impl RefUnwindSafe for LibraryError
impl Send for LibraryError
impl Sync for LibraryError
impl Unpin for LibraryError
impl UnsafeUnpin for LibraryError
impl UnwindSafe for LibraryError
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