pub enum Error {
Show 14 variants
TagReadFailure(TagReadFailure),
TagWriteFailure(TagWriteFailure),
CommentNotFound(CommentNotFound),
AmbiguousCommentChoices(AmbiguousCommentChoices),
PictureTypeNotFound(PictureTypeNotFound),
PictureNotFound(PictureNotFound),
AmbiguousPictureChoices(AmbiguousPictureChoices),
DeserializationFailure(DeserializationFailure),
PictureFileWriteFailure(PictureFileWriteFailure),
OutputDirCreationFailure(OutputDirCreationFailure),
InvalidFilePath(InvalidFilePath),
FileReadFailure(FileReadFailure),
DirCreationFailure(DirCreationFailure),
BackupFailure(BackupFailure),
}
Variants§
TagReadFailure(TagReadFailure)
TagWriteFailure(TagWriteFailure)
CommentNotFound(CommentNotFound)
AmbiguousCommentChoices(AmbiguousCommentChoices)
PictureTypeNotFound(PictureTypeNotFound)
PictureNotFound(PictureNotFound)
AmbiguousPictureChoices(AmbiguousPictureChoices)
DeserializationFailure(DeserializationFailure)
PictureFileWriteFailure(PictureFileWriteFailure)
OutputDirCreationFailure(OutputDirCreationFailure)
InvalidFilePath(InvalidFilePath)
FileReadFailure(FileReadFailure)
DirCreationFailure(DirCreationFailure)
BackupFailure(BackupFailure)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<AmbiguousCommentChoices> for Error
impl From<AmbiguousCommentChoices> for Error
Source§fn from(original: AmbiguousCommentChoices) -> Error
fn from(original: AmbiguousCommentChoices) -> Error
Converts to this type from the input type.
Source§impl From<AmbiguousPictureChoices> for Error
impl From<AmbiguousPictureChoices> for Error
Source§fn from(original: AmbiguousPictureChoices) -> Error
fn from(original: AmbiguousPictureChoices) -> Error
Converts to this type from the input type.
Source§impl From<BackupFailure> for Error
impl From<BackupFailure> for Error
Source§fn from(original: BackupFailure) -> Error
fn from(original: BackupFailure) -> Error
Converts to this type from the input type.
Source§impl From<CommentNotFound> for Error
impl From<CommentNotFound> for Error
Source§fn from(original: CommentNotFound) -> Error
fn from(original: CommentNotFound) -> Error
Converts to this type from the input type.
Source§impl From<DeserializationFailure> for Error
impl From<DeserializationFailure> for Error
Source§fn from(original: DeserializationFailure) -> Error
fn from(original: DeserializationFailure) -> Error
Converts to this type from the input type.
Source§impl From<DirCreationFailure> for Error
impl From<DirCreationFailure> for Error
Source§fn from(original: DirCreationFailure) -> Error
fn from(original: DirCreationFailure) -> Error
Converts to this type from the input type.
Source§impl From<FileReadFailure> for Error
impl From<FileReadFailure> for Error
Source§fn from(original: FileReadFailure) -> Error
fn from(original: FileReadFailure) -> Error
Converts to this type from the input type.
Source§impl From<InvalidFilePath> for Error
impl From<InvalidFilePath> for Error
Source§fn from(original: InvalidFilePath) -> Error
fn from(original: InvalidFilePath) -> Error
Converts to this type from the input type.
Source§impl From<OutputDirCreationFailure> for Error
impl From<OutputDirCreationFailure> for Error
Source§fn from(original: OutputDirCreationFailure) -> Error
fn from(original: OutputDirCreationFailure) -> Error
Converts to this type from the input type.
Source§impl From<PictureFileWriteFailure> for Error
impl From<PictureFileWriteFailure> for Error
Source§fn from(original: PictureFileWriteFailure) -> Error
fn from(original: PictureFileWriteFailure) -> Error
Converts to this type from the input type.
Source§impl From<PictureNotFound> for Error
impl From<PictureNotFound> for Error
Source§fn from(original: PictureNotFound) -> Error
fn from(original: PictureNotFound) -> Error
Converts to this type from the input type.
Source§impl From<PictureTypeNotFound> for Error
impl From<PictureTypeNotFound> for Error
Source§fn from(original: PictureTypeNotFound) -> Error
fn from(original: PictureTypeNotFound) -> Error
Converts to this type from the input type.
Source§impl From<TagReadFailure> for Error
impl From<TagReadFailure> for Error
Source§fn from(original: TagReadFailure) -> Error
fn from(original: TagReadFailure) -> Error
Converts to this type from the input type.
Source§impl From<TagWriteFailure> for Error
impl From<TagWriteFailure> for Error
Source§fn from(original: TagWriteFailure) -> Error
fn from(original: TagWriteFailure) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin 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
Source§impl<X> Pipe for X
impl<X> Pipe for X
Source§fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
Source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
Source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait AsRef<Param>
. Read moreSource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait AsMut<Param>
. Read moreSource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Target = Param>
. Read moreSource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait DerefMut<Target = Param>
. Read moreSource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Borrow<Param>
. Read moreSource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait BorrowMut<Param>
. Read more