[][src]Enum gstreamer::StreamError

#[non_exhaustive]pub enum StreamError {
    Failed,
    TooLazy,
    NotImplemented,
    TypeNotFound,
    WrongType,
    CodecNotFound,
    Decode,
    Encode,
    Demux,
    Mux,
    Format,
    Decrypt,
    DecryptNokey,
    NumErrors,
    // some variants omitted
}

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)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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

impl Clone for StreamError[src]

impl Copy for StreamError[src]

impl Debug for StreamError[src]

impl Eq for StreamError[src]

impl ErrorDomain for StreamError[src]

impl<'a> FromValue<'a> for StreamError[src]

impl<'a> FromValueOptional<'a> for StreamError[src]

impl Hash for StreamError[src]

impl MessageErrorDomain for StreamError[src]

impl Ord for StreamError[src]

impl PartialEq<StreamError> for StreamError[src]

impl PartialOrd<StreamError> for StreamError[src]

impl SetValue for StreamError[src]

impl StaticType for StreamError[src]

impl StructuralEq for StreamError[src]

impl StructuralPartialEq for StreamError[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.