pub enum AnalysisError {
Failed {
reason: String,
},
BpmDetectionFailed {
reason: String,
},
Decode(DecodeError),
}Expand description
Errors that can occur during media analysis (scene / silence / BPM / histogram / keyframe / black-frame / waveform).
Variants§
Failed
An analysis operation failed for a structural reason (e.g. a zero interval, a missing stream, or an unsupported format).
BpmDetectionFailed
BPM detection failed for a structural reason (e.g. no audio stream, or a clip too short to analyse).
Reserved for the planned tempo detector (spectral flux + autocorrelation).
Decode(DecodeError)
An error propagated from the underlying decoder.
Trait Implementations§
Source§impl Debug for AnalysisError
impl Debug for AnalysisError
Source§impl Display for AnalysisError
impl Display for AnalysisError
Source§impl Error for AnalysisError
impl Error for AnalysisError
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<DecodeError> for AnalysisError
impl From<DecodeError> for AnalysisError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl MediaError for AnalysisError
impl MediaError for AnalysisError
Source§fn severity(&self) -> ErrorSeverity
fn severity(&self) -> ErrorSeverity
Decoder-propagated errors keep the decoder’s own classification; the analysis-specific failures are fatal (the operation cannot proceed).
Source§fn is_recoverable(&self) -> bool
fn is_recoverable(&self) -> bool
Returns
true if the failing operation can be retried without rebuilding.Auto Trait Implementations§
impl !RefUnwindSafe for AnalysisError
impl !UnwindSafe for AnalysisError
impl Freeze for AnalysisError
impl Send for AnalysisError
impl Sync for AnalysisError
impl Unpin for AnalysisError
impl UnsafeUnpin for AnalysisError
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