pub enum AnalyzeError {
Show 18 variants
Notes(MidiError),
Decode(DecodeError),
OutIsFile {
path: PathBuf,
},
NoFolderName {
source: String,
stem: Option<String>,
},
OtherSource {
path: PathBuf,
recorded: String,
source: String,
guarded: Guarded,
},
OtherAudio {
path: PathBuf,
source: String,
guarded: Guarded,
},
NotOurs {
path: PathBuf,
guarded: Guarded,
},
Backup {
backups: Vec<(PathBuf, &'static str)>,
},
Unowned {
path: PathBuf,
},
NotesDescribed {
path: PathBuf,
},
Transcription(NotesError),
Pitch(PitchError),
Envelope(EnvelopeError),
Voices(VoicesError),
NoNotes {
source: String,
},
Midi(MidiWriteError),
Write {
path: PathBuf,
source: Error,
},
Internal(String),
}Expand description
An analysis that failed.
Variants§
Notes(MidiError)
The note list cannot be read.
Decode(DecodeError)
The stem cannot be decoded.
OutIsFile
The output folder is a file.
NoFolderName
The default output folder of a stem has no name of its own: the
stem’s name has no extension, or is . or .. without it.
Fields
OtherSource
The output folder holds the report or the notes of another stem.
Fields
OtherAudio
The output folder holds a report of the stem’s name with other content: the recorded checksum differs, so it is another stem of that name or this stem changed since that run.
Fields
NotOurs
The output folder holds a layers.json or a notes.mid that this
tool did not write: it cannot be read, or names no stem.
Fields
Backup
The output folder holds the backup of a report file, but not the file: a run was killed during its renames.
Fields
Unowned
The output folder holds a spectrogram.png that no report owns.
NotesDescribed
The output folder holds a layers.json that describes the final
notes, which notes would replace with the first list.
Transcription(NotesError)
The model run, a decode or the f0 track failed.
Pitch(PitchError)
The pitch layer failed.
Envelope(EnvelopeError)
The envelope layer failed.
Voices(VoicesError)
The voices layer failed.
NoNotes
The stem gave no note.
Midi(MidiWriteError)
The notes cannot be stored as MIDI.
Write
An output file or folder cannot be written.
Internal(String)
An internal step failed: a confidence that could not be built, or a JSON or PNG encoder error.
Trait Implementations§
Source§impl Debug for AnalyzeError
impl Debug for AnalyzeError
Source§impl Display for AnalyzeError
impl Display for AnalyzeError
Source§impl Error for AnalyzeError
impl Error for AnalyzeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ConfidenceError> for AnalyzeError
impl From<ConfidenceError> for AnalyzeError
Source§fn from(error: ConfidenceError) -> Self
fn from(error: ConfidenceError) -> Self
Source§impl From<EncodingError> for AnalyzeError
impl From<EncodingError> for AnalyzeError
Auto Trait Implementations§
impl !RefUnwindSafe for AnalyzeError
impl !UnwindSafe for AnalyzeError
impl Freeze for AnalyzeError
impl Send for AnalyzeError
impl Sync for AnalyzeError
impl Unpin for AnalyzeError
impl UnsafeUnpin for AnalyzeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
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> ⓘ
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 more