Skip to main content

EdlError

Enum EdlError 

Source
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

§line: usize

Line number where the error occurred.

§message: String

Description of the parse error.

§

InvalidTimecode

Invalid timecode encountered.

Fields

§line: usize

Line number where the error occurred.

§message: String

Description of the timecode error.

§

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

§line: usize

Line number where the error occurred.

§message: String

Description of the comment error.

§

EventOverlap

Event overlap detected.

Fields

§event1: u32

First overlapping event.

§event2: u32

Second overlapping event.

§

TimelineGap

Gap in timeline detected.

Fields

§event1: u32

Event before the gap.

§event2: u32

Event after the gap.

§

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

Source

pub fn parse(line: usize, message: impl Into<String>) -> Self

Creates a new parse error at the given line.

Source

pub fn invalid_timecode(line: usize, message: impl Into<String>) -> Self

Creates a new invalid timecode error.

Source

pub fn comment_error(line: usize, message: impl Into<String>) -> Self

Creates a new comment error.

Source

pub fn validation(message: impl Into<String>) -> Self

Creates a new validation error.

Source

pub const fn event_overlap(event1: u32, event2: u32) -> Self

Creates a new event overlap error.

Source

pub const fn timeline_gap(event1: u32, event2: u32) -> Self

Creates a new timeline gap error.

Trait Implementations§

Source§

impl Debug for EdlError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for EdlError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for EdlError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for EdlError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.