#[non_exhaustive]pub enum ErrorCode {
Show 13 variants
InvalidRequest,
UnknownCommand,
InvalidParams,
UnknownEpisode,
NotPlaying,
SeekUnsupported,
PlaybackFailed,
CatalogUnavailable,
DownloadFailed,
DownloadNotActive,
InsufficientSpace,
Internal,
Unknown,
}Expand description
A stable machine-readable error code.
Any condition not covered by a more specific code uses ErrorCode::Internal.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidRequest
The request line was not valid JSON, was not an object, or lacked id or cmd.
UnknownCommand
The cmd.type field named a command the daemon does not implement.
InvalidParams
The arguments parsed but fall outside their permitted domain.
UnknownEpisode
No catalog episode has the requested identifier.
NotPlaying
The command needs a loaded episode and none is loaded.
SeekUnsupported
The current audio source cannot seek.
PlaybackFailed
Audio output, decoding, or the audio transfer failed.
The catalog could not be served from cache or network.
DownloadFailed
A download transfer failed or its verification did not pass.
DownloadNotActive
No download is running for the named episode.
InsufficientSpace
The cache filesystem has less free space than the download requires.
Internal
Anything not covered by a more specific code.
Unknown
A spelling this release does not know, which a newer daemon sent.
The protocol names no version, so an added code costs a client that one code rather than the whole response line.
Implementations§
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
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>,
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.