pub enum BackupError {
FileNotFound(PathBuf),
WrongExtension(PathBuf, String),
PathIsDirectory(PathBuf),
CsvError(String),
IoError(String),
InvalidDynamicPlaylistFormat,
InvalidDynamicPlaylistQuery(String, usize),
PlaylistNameInvalidOrAlreadySet(usize),
NoValidSongs(usize),
NoValidPlaylists,
}Expand description
Errors that can occur when importing or exporting playlists or dynamic playlists
Variants§
FileNotFound(PathBuf)
WrongExtension(PathBuf, String)
PathIsDirectory(PathBuf)
CsvError(String)
IoError(String)
InvalidDynamicPlaylistFormat
InvalidDynamicPlaylistQuery(String, usize)
PlaylistNameInvalidOrAlreadySet(usize)
NoValidSongs(usize)
NoValidPlaylists
Trait Implementations§
Source§impl Debug for BackupError
impl Debug for BackupError
Source§impl<'de> Deserialize<'de> for BackupError
impl<'de> Deserialize<'de> for BackupError
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 BackupError
impl Display for BackupError
Source§impl Error for BackupError
impl Error for BackupError
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<BackupError> for SerializableLibraryError
impl From<BackupError> for SerializableLibraryError
Source§fn from(source: BackupError) -> Self
fn from(source: BackupError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BackupError
impl From<Error> for BackupError
Source§impl From<Error> for BackupError
impl From<Error> for BackupError
Source§impl PartialEq for BackupError
impl PartialEq for BackupError
Source§impl Serialize for BackupError
impl Serialize for BackupError
impl Eq for BackupError
impl StructuralPartialEq for BackupError
Auto Trait Implementations§
impl Freeze for BackupError
impl RefUnwindSafe for BackupError
impl Send for BackupError
impl Sync for BackupError
impl Unpin for BackupError
impl UnwindSafe for BackupError
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