#[non_exhaustive]pub enum TimecodeError {
UnsupportedFrameRate,
InvalidSyntax,
DropFrameSeparator,
FieldOutOfRange,
DroppedLabel,
FrameOutOfRange,
ZeroDenominator,
ZeroSampleRate,
Overflow,
}Expand description
An error from building, parsing or converting a timecode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedFrameRate
The nominal rate, 1000/1001 and drop-frame combination is not one of
FrameRate::ALL.
InvalidSyntax
The text is not HH:MM:SS:FF with two-digit fields and a two- or three-digit frame field.
DropFrameSeparator
A non-drop-frame timecode used the ; frame separator.
FieldOutOfRange
Hours exceed 23, minutes or seconds exceed 59, or frames reach the nominal rate.
DroppedLabel
The label is one drop-frame counting skips, such as 00:01:00;00 at 29.97 DF.
FrameOutOfRange
The frame position does not fall within one 24-hour day.
ZeroDenominator
A ratio was given a zero denominator.
ZeroSampleRate
A conversion from samples was given a zero sample rate.
Overflow
An intermediate or final value does not fit the result type.
Trait Implementations§
Source§impl Clone for TimecodeError
impl Clone for TimecodeError
impl Copy for TimecodeError
Source§impl Debug for TimecodeError
impl Debug for TimecodeError
Source§impl Display for TimecodeError
impl Display for TimecodeError
impl Eq for TimecodeError
Source§impl Error for TimecodeError
impl Error for TimecodeError
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 Hash for TimecodeError
impl Hash for TimecodeError
Source§impl PartialEq for TimecodeError
impl PartialEq for TimecodeError
impl StructuralPartialEq for TimecodeError
Auto Trait Implementations§
impl Freeze for TimecodeError
impl RefUnwindSafe for TimecodeError
impl Send for TimecodeError
impl Sync for TimecodeError
impl Unpin for TimecodeError
impl UnsafeUnpin for TimecodeError
impl UnwindSafe for TimecodeError
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