Skip to main content

ParseError

Enum ParseError 

Source
pub enum ParseError {
Show 25 variants Empty, EmptyStage, TooFewStages, UnknownSource(String), UnknownElement(String), MalformedProperty { element: String, token: String, }, UnknownProperty { element: String, key: String, }, BadValue { element: String, key: String, value: String, }, BadEnumValue { element: String, key: String, value: String, values: &'static str, }, UnknownReference(String), DuplicateName(String), NotAMuxer(String), MuxerWithoutOutput(String), UnknownInputPad(String), DuplicateInputPad(String), QueueRole(String), DecodebinNoUpstream, NoDecodeChain(String), EncodingProfile(String), NoEncoder(String), EncodebinInput(String), UriSourceNotAtHead(String), MissingUri(String), Uri(String), Graph(GraphError),
}
Expand description

Why parse_launch could not build a graph.

Variants§

§

Empty

The pipeline string was empty or all whitespace.

§

EmptyStage

A node between ! separators had no element name.

§

TooFewStages

Fewer than two elements: a runnable pipeline needs at least a source and a sink.

§

UnknownSource(String)

A source-position element names no registered source.

§

UnknownElement(String)

A transform / sink-position element names no registered element.

§

MalformedProperty

A property token had no = (expected key=value).

Fields

§element: String
§token: String
§

UnknownProperty

The element has no property of that name.

Fields

§element: String
§

BadValue

The value did not parse for the property’s kind, or was rejected.

Fields

§element: String
§value: String
§

BadEnumValue

The value names no declared choice of an enum / flag property. value is the offending nick (one entry of a +-joined set), or the whole value when the set was malformed; values is the property’s declared list.

Fields

§element: String
§value: String
§values: &'static str
§

UnknownReference(String)

A name. reference names no element declared with that name=.

§

DuplicateName(String)

Two elements share the same name= handle.

§

NotAMuxer(String)

More than one link feeds an element’s input, but it names no registered muxer: fan-in needs a MuxerFactory.

§

MuxerWithoutOutput(String)

A muxer (an element with several inputs) has no outgoing link; its single output pad must feed a downstream consumer.

§

UnknownInputPad(String)

A named input-pad reference (mux.foo_0) names a request pad this muxer does not define (M481): the element’s input_pad_index scheme declined it.

§

DuplicateInputPad(String)

Two input-pad references resolve to the same muxer input index (M481), e.g. mux.video_0 named twice, or a named pad colliding with a positional one.

§

QueueRole(String)

A queue / queue2 sits anywhere but a 1-in/1-out position. It is not an element in g2g (it collapses into the edge’s backpressure policy), so it cannot be a source, a sink, or a fan-out / fan-in node.

§

DecodebinNoUpstream

A decodebin has no upstream element to take its input caps from (it was the first element, or followed a bare name. reference). decodebin auto-plugs from its predecessor’s declared caps, so it needs one.

§

NoDecodeChain(String)

decodebin found no chain of registered decoders / parsers from its input caps to raw video or audio (the input caps are quoted). Either no decoder feature is compiled in, or the input is a container that needs a demuxer (auto-plugging through fan-out demuxers is not yet supported).

§

EncodingProfile(String)

An encodebin had no profile=, or one that is not container-caps:stream-caps[:stream-caps...] (the message says which).

§

NoEncoder(String)

An encodebin profile named a container no registered muxer writes, or a stream codec no compiled-in encoder produces (the message quotes it).

§

EncodebinInput(String)

An encodebin chain’s input is not raw video or audio, or its profile has no stream of that kind, so nothing in the profile can encode it.

§

UriSourceNotAtHead(String)

A uridecodebin / playbin was not at the head of its chain. It provides the source, so it must start the pipeline.

§

MissingUri(String)

A uridecodebin / playbin had no uri= property.

§

Uri(String)

The uri= could not be turned into a source (bad URI, or no handler registered for its scheme). The message quotes the URI and reason.

§

Graph(GraphError)

Linking two nodes into the graph failed.

Trait Implementations§

Source§

impl Clone for ParseError

Source§

fn clone(&self) -> ParseError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ParseError

Source§

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

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

impl Display for ParseError

Source§

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

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

impl Eq for ParseError

Source§

impl From<GraphError> for ParseError

Source§

fn from(e: GraphError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ParseError

Source§

fn eq(&self, other: &ParseError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ParseError

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ElementBound for T
where T: Send,

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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 = !

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.