pub enum DedupError {
Io(Error),
Database(String),
Hash(String),
Visual(String),
Audio(String),
Metadata(String),
FileNotFound(PathBuf),
InvalidConfig(String),
Core(OxiError),
}Expand description
Deduplication error type.
Variants§
Io(Error)
I/O error
Database(String)
Database error (non-sqlite variant)
Hash(String)
Hashing error
Visual(String)
Visual processing error
Audio(String)
Audio processing error
Metadata(String)
Metadata processing error
FileNotFound(PathBuf)
File not found
InvalidConfig(String)
Invalid configuration
Core(OxiError)
Core library error
Trait Implementations§
Source§impl Debug for DedupError
impl Debug for DedupError
Source§impl Display for DedupError
impl Display for DedupError
Source§impl Error for DedupError
impl Error for DedupError
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<Error> for DedupError
impl From<Error> for DedupError
Auto Trait Implementations§
impl Freeze for DedupError
impl !RefUnwindSafe for DedupError
impl Send for DedupError
impl Sync for DedupError
impl Unpin for DedupError
impl UnsafeUnpin for DedupError
impl !UnwindSafe for DedupError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<E> OxiErrorExt for Ewhere
E: Error,
impl<E> OxiErrorExt for Ewhere
E: Error,
Source§fn with_oxi_context(self, frame: ErrorFrame) -> OxiError
fn with_oxi_context(self, frame: ErrorFrame) -> OxiError
Wraps
self by prepending the frame’s display string as context.