pub enum LibraryError {
PlaylistExists,
LibraryNotInitialized,
NoSuchPlaylist,
IndexOutOfBounds,
DuplicateItems,
NoSuchTrack,
StateNotReadable,
StateWriteFailed,
StateNotAFile,
}Expand description
An error originating from the music library module of the daemon.
Variants§
PlaylistExists
Could not complete the operation because a playlist with the provided name already exists.
LibraryNotInitialized
Could not perform the operation because the music library is not initialized.
This can happen if a command is sent to early and the music library is not yet initialized.
NoSuchPlaylist
There is no playlist in the music library with the provided name.
IndexOutOfBounds
The provided item index was out of bounds.
DuplicateItems
The provided list contained duplicate values.
NoSuchTrack
The provided track is not registered in the library.
StateNotReadable
Could not read the contents of the library state file.
StateWriteFailed
Could not write the library state to a file.
StateNotAFile
The library state path is not a file.
Trait Implementations§
Source§impl Clone for LibraryError
impl Clone for LibraryError
Source§fn clone(&self) -> LibraryError
fn clone(&self) -> LibraryError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LibraryError
impl Debug for LibraryError
Source§impl<'de> Deserialize<'de> for LibraryError
impl<'de> Deserialize<'de> for LibraryError
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
Source§impl Display for LibraryError
impl Display for LibraryError
Source§impl Hash for LibraryError
impl Hash for LibraryError
Source§impl PartialEq for LibraryError
impl PartialEq for LibraryError
Source§fn eq(&self, other: &LibraryError) -> bool
fn eq(&self, other: &LibraryError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LibraryError
impl Serialize for LibraryError
impl Eq 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