pub enum EdlError {
Show 25 variants
Io(Error),
Parse {
line: usize,
message: String,
},
InvalidTimecode {
line: usize,
message: String,
},
InvalidEventNumber(u32),
InvalidEditType(String),
InvalidTrackType(String),
InvalidTransitionDuration(String),
InvalidReelName(String),
InvalidMotionEffect(String),
InvalidAudioChannel(String),
UnsupportedFormat(String),
ValidationError(String),
EventNotFound(u32),
TimecodeOutOfRange(String),
InvalidFrameRate(String),
InvalidDropFrameMode(String),
CommentError {
line: usize,
message: String,
},
EventOverlap {
event1: u32,
event2: u32,
},
TimelineGap {
event1: u32,
event2: u32,
},
InvalidWipePattern(String),
InvalidKeyType(String),
ConversionError(String),
MissingField(String),
InvalidSourceRange,
InvalidRecordRange,
}Expand description
Errors that can occur during EDL parsing, generation, and validation.
Variants§
Io(Error)
I/O error occurred.
Parse
Parse error at a specific line.
Fields
InvalidTimecode
Invalid timecode encountered.
Fields
InvalidEventNumber(u32)
Invalid event number.
InvalidEditType(String)
Invalid edit type.
InvalidTrackType(String)
Invalid track type.
InvalidTransitionDuration(String)
Invalid transition duration.
InvalidReelName(String)
Invalid reel name.
InvalidMotionEffect(String)
Invalid motion effect.
InvalidAudioChannel(String)
Invalid audio channel.
UnsupportedFormat(String)
Unsupported EDL format.
ValidationError(String)
EDL validation error.
EventNotFound(u32)
Event not found.
TimecodeOutOfRange(String)
Timecode out of range.
InvalidFrameRate(String)
Invalid frame rate.
InvalidDropFrameMode(String)
Invalid drop frame mode.
CommentError
Comment parsing error.
Fields
EventOverlap
Event overlap detected.
TimelineGap
Gap in timeline detected.
InvalidWipePattern(String)
Invalid wipe pattern.
InvalidKeyType(String)
Invalid key type.
ConversionError(String)
Conversion error between EDL formats.
MissingField(String)
Missing required field.
InvalidSourceRange
Invalid source timecode range.
InvalidRecordRange
Invalid record timecode range.
Implementations§
Source§impl EdlError
impl EdlError
Sourcepub fn parse(line: usize, message: impl Into<String>) -> Self
pub fn parse(line: usize, message: impl Into<String>) -> Self
Creates a new parse error at the given line.
Sourcepub fn invalid_timecode(line: usize, message: impl Into<String>) -> Self
pub fn invalid_timecode(line: usize, message: impl Into<String>) -> Self
Creates a new invalid timecode error.
Sourcepub fn comment_error(line: usize, message: impl Into<String>) -> Self
pub fn comment_error(line: usize, message: impl Into<String>) -> Self
Creates a new comment error.
Sourcepub fn validation(message: impl Into<String>) -> Self
pub fn validation(message: impl Into<String>) -> Self
Creates a new validation error.
Sourcepub const fn event_overlap(event1: u32, event2: u32) -> Self
pub const fn event_overlap(event1: u32, event2: u32) -> Self
Creates a new event overlap error.
Sourcepub const fn timeline_gap(event1: u32, event2: u32) -> Self
pub const fn timeline_gap(event1: u32, event2: u32) -> Self
Creates a new timeline gap error.
Trait Implementations§
Source§impl Error for EdlError
impl Error for EdlError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for EdlError
impl !UnwindSafe for EdlError
impl Freeze for EdlError
impl Send for EdlError
impl Sync for EdlError
impl Unpin for EdlError
impl UnsafeUnpin for EdlError
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
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