pub enum Error {
EncodingError,
DecodingError,
ConnectionError,
SendingError,
LibraryError(LibraryError),
InvalidResponse,
PlaybackError(PlaybackError),
SocketError(String),
}Expand description
Error related to the daemon.
Can either originate from a Response or from a function in this crate.
Variants§
EncodingError
The provided command could not be encoded.
DecodingError
The daemon response could not be decoded.
ConnectionError
Could not connect to the daemon.
SendingError
Could not send the command to the daemon.
LibraryError(LibraryError)
Error related to the music library.
InvalidResponse
The response received from the daemon was unexpected or invalid.
PlaybackError(PlaybackError)
Error related to the playback module.
SocketError(String)
Could not obtain a socket
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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