pub enum MtagError {
ReadDirectory {
path: PathBuf,
source: Error,
},
InspectFileType {
path: PathBuf,
source: Error,
},
ReadMetadata {
path: PathBuf,
source: LoftyError,
},
MissingTags {
path: PathBuf,
},
MissingFileName {
path: PathBuf,
},
DestinationExists {
path: PathBuf,
},
InvalidConflictStrategy {
value: String,
},
InvalidTemplateVariable {
variable: String,
},
UnclosedTemplateVariable {
template: String,
},
FileOperation {
operation: &'static str,
from: PathBuf,
to: PathBuf,
source: Error,
},
}Expand description
Errors that can occur while scanning, planning, or executing an organization run.
Variants§
ReadDirectory
A source directory could not be read during recursive scanning.
InspectFileType
A file type could not be inspected.
Fields
ReadMetadata
Audio metadata could not be read.
Fields
§
source: LoftyErrorUnderlying Lofty error.
MissingTags
The audio file had no readable tag block.
MissingFileName
A source or destination path had no final file-name component.
DestinationExists
The destination file already exists and the selected conflict policy forbids overwriting.
InvalidConflictStrategy
A conflict strategy string could not be parsed.
InvalidTemplateVariable
A template references an unsupported variable.
UnclosedTemplateVariable
A template contains an opening brace without a matching closing brace.
FileOperation
A filesystem operation failed while copying, moving, or preparing destination directories.
Trait Implementations§
Source§impl Error for MtagError
impl Error for MtagError
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()
Auto Trait Implementations§
impl Freeze for MtagError
impl !RefUnwindSafe for MtagError
impl Send for MtagError
impl Sync for MtagError
impl Unpin for MtagError
impl UnsafeUnpin for MtagError
impl !UnwindSafe for MtagError
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