#[non_exhaustive]pub enum EditError {
Show 16 variants
UnknownData(DataSetId),
WrongKind {
data: DataSetId,
kind: DataKind,
},
UnknownTarget(String),
EmptyTarget,
MissingAnchor,
InvalidRange(usize),
NothingToBake(String),
CorrectionNotBakeable(String),
UnboundedParameter(String),
MatteSource(ClipId),
ReadThrough {
clip: ClipId,
by: String,
},
InTransition {
clip: ClipId,
time: MediaTime,
},
InFade {
clip: ClipId,
time: MediaTime,
},
TooManyClips {
track: TrackId,
found: usize,
maximum: usize,
},
TooManyCues {
track: TrackId,
found: Option<usize>,
maximum: usize,
},
InvalidResult(ModelError),
}Expand description
Why an operation refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownData(DataSetId)
It names no data set of the project.
WrongKind
The data set’s kind does not fit the operation.
UnknownTarget(String)
It names a clip, track, composition or node the project lacks.
EmptyTarget
The target names no clip.
MissingAnchor
A list without an anchor.
InvalidRange(usize)
A range with its start after its end, by position.
NothingToBake(String)
A bake target whose value is not bound to data (or a track with no words).
CorrectionNotBakeable(String)
A correction has no keyframe equivalent.
UnboundedParameter(String)
A bake target is a parameter of an effect the model has no range for (a host effect), so the live value the renderer clamps cannot be written.
MatteSource(ClipId)
The edit cuts a matte source where a clip it mattes is not cut, or removes it from under one, so no single part of it can stay that clip’s matte.
ReadThrough
The edit cuts a clip where a binding reading through it (via) is not cut, or removes it,
so no single part of it can be read through.
Fields
InTransition
A removed range’s edge, or a part boundary the removal makes in a loop, falls strictly inside a transition of the clip it cuts.
InFade
A removed range’s edge falls strictly inside a fade of the clip it cuts.
TooManyClips
The result would hold more clips on a track than a track holds.
Fields
TooManyCues
A caption bake’s cues do not fit a track: more than it holds, or words past the limits of
cues from words (alpha2_model::MAX_DERIVED_CUES, alpha2_model::MAX_DATA_WORDS).
Fields
InvalidResult(ModelError)
The edited project failed validation, which is a bug.
Implementations§
Source§impl EditError
impl EditError
Sourcepub const fn kind(&self) -> &'static str
pub const fn kind(&self) -> &'static str
The refusal in snake case, as every binding reports it: unknown_data, wrong_kind,
unknown_target, empty_target, missing_anchor, invalid_range, nothing_to_bake,
correction_not_bakeable, unbounded_parameter, matte_source, read_through,
in_transition, in_fade, too_many_clips, too_many_cues or invalid_result.
Trait Implementations§
impl Eq for EditError
Source§impl Error for EditError
impl Error for EditError
1.30.0 · 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()