[][src]Enum gstreamer::ResourceError

#[non_exhaustive]pub enum ResourceError {
    Failed,
    TooLazy,
    NotFound,
    Busy,
    OpenRead,
    OpenWrite,
    OpenReadWrite,
    Close,
    Read,
    Write,
    Seek,
    Sync,
    Settings,
    NoSpaceLeft,
    NotAuthorized,
    NumErrors,
    // some variants omitted
}

Resource errors are for any resource used by an element: memory, files, network connections, process space, ... They're typically used by source and sink elements.

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.

NotFound

used when the resource could not be found.

Busy

used when resource is busy.

OpenRead

used when resource fails to open for reading.

OpenWrite

used when resource fails to open for writing.

OpenReadWrite

used when resource cannot be opened for both reading and writing, or either (but unspecified which).

Close

used when the resource can't be closed.

Read

used when the resource can't be read from.

Write

used when the resource can't be written to.

Seek

used when a seek on the resource fails.

Sync

used when a synchronize on the resource fails.

Settings

used when settings can't be manipulated on.

NoSpaceLeft

used when the resource has no space left.

NotAuthorized

used when the resource can't be opened due to missing authorization. (Since: 1.2.4)

NumErrors

the number of resource error types.

Trait Implementations

impl Clone for ResourceError[src]

impl Copy for ResourceError[src]

impl Debug for ResourceError[src]

impl Eq for ResourceError[src]

impl ErrorDomain for ResourceError[src]

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

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

impl Hash for ResourceError[src]

impl MessageErrorDomain for ResourceError[src]

impl Ord for ResourceError[src]

impl PartialEq<ResourceError> for ResourceError[src]

impl PartialOrd<ResourceError> for ResourceError[src]

impl SetValue for ResourceError[src]

impl StaticType for ResourceError[src]

impl StructuralEq for ResourceError[src]

impl StructuralPartialEq for ResourceError[src]

Auto Trait Implementations

impl RefUnwindSafe for ResourceError

impl Send for ResourceError

impl Sync for ResourceError

impl Unpin for ResourceError

impl UnwindSafe for ResourceError

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.