Enum gstreamer::ResourceError [−][src]
#[non_exhaustive]
pub enum ResourceError {
Show variants
Failed,
TooLazy,
NotFound,
Busy,
OpenRead,
OpenWrite,
OpenReadWrite,
Close,
Read,
Write,
Seek,
Sync,
Settings,
NoSpaceLeft,
NotAuthorized,
NumErrors,
// some variants omitted
}Expand description
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)
This enum is marked as non-exhaustive
a general error which doesn’t fit in any other category. Make sure you add a custom message to the error call.
do not use this except as a placeholder for deciding where to go while developing code.
used when the resource could not be found.
used when resource is busy.
used when resource fails to open for reading.
used when resource fails to open for writing.
used when resource cannot be opened for both reading and writing, or either (but unspecified which).
used when the resource can’t be closed.
used when the resource can’t be read from.
used when the resource can’t be written to.
used when a seek on the resource fails.
used when a synchronize on the resource fails.
used when settings can’t be manipulated on.
used when the resource has no space left.
used when the resource can’t be opened due to missing authorization. (Since: 1.2.4)
the number of resource 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 ResourceErrorimpl Send for ResourceErrorimpl Sync for ResourceErrorimpl Unpin for ResourceErrorimpl UnwindSafe for ResourceErrorBlanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue clone of self.