pub enum Error {
Io(Error),
Process {
message: String,
exit_code: Option<i32>,
},
Parse(String),
TagNotFound(String),
InvalidArgument(String),
ExifToolNotFound,
MutexPoisoned,
Serialization(Error),
Timeout,
}Expand description
所有 ExifTool 操作的错误类型
Variants§
Io(Error)
IO 错误
Process
进程错误
Parse(String)
解析错误
TagNotFound(String)
标签未找到
InvalidArgument(String)
无效参数
ExifToolNotFound
ExifTool 未找到
MutexPoisoned
互斥锁被污染
Serialization(Error)
序列化错误
Timeout
超时
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<PoisonError<MutexGuard<'_, ExifToolInner>>> for Error
impl From<PoisonError<MutexGuard<'_, ExifToolInner>>> for Error
Source§fn from(_: PoisonError<MutexGuard<'_, ExifToolInner>>) -> Self
fn from(_: PoisonError<MutexGuard<'_, ExifToolInner>>) -> Self
Converts to this type from the input type.
Source§impl Recoverable for Error
impl Recoverable for Error
Source§fn is_recoverable(&self) -> bool
fn is_recoverable(&self) -> bool
检查是否可恢复
Source§fn recovery_suggestion(&self) -> Option<String>
fn recovery_suggestion(&self) -> Option<String>
获取恢复建议
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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