Enum gstreamer::StreamError
source · [−]#[non_exhaustive]
pub enum StreamError {
Show 14 variants
Failed,
TooLazy,
NotImplemented,
TypeNotFound,
WrongType,
CodecNotFound,
Decode,
Encode,
Demux,
Mux,
Format,
Decrypt,
DecryptNokey,
NumErrors,
// some variants omitted
}
Expand description
Stream errors are for anything related to the stream being processed: format errors, media type errors, … They’re typically used by decoders, demuxers, converters, …
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Failed
a general error which doesn’t fit in any other category. Make sure you add a custom message to the error call.
TooLazy
do not use this except as a placeholder for deciding where to go while developing code.
NotImplemented
use this when you do not want to implement this functionality yet.
TypeNotFound
used when the element doesn’t know the stream’s type.
WrongType
used when the element doesn’t handle this type of stream.
CodecNotFound
used when there’s no codec to handle the stream’s type.
Decode
used when decoding fails.
Encode
used when encoding fails.
Demux
used when demuxing fails.
Mux
used when muxing fails.
Format
used when the stream is of the wrong format (for example, wrong caps).
Decrypt
used when the stream is encrypted and can’t be decrypted because this is not supported by the element.
DecryptNokey
used when the stream is encrypted and can’t be decrypted because no suitable key is available.
NumErrors
the number of stream error types.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl UnwindSafe for StreamError
Blanket Implementations
Mutably borrows from an owned value. Read more
Ensures that the type has been registered with the type system.
Returns a SendValue
clone of self
.