#[non_exhaustive]pub enum OpenInputError {
}Variants (Non-exhaustive)§
This enum is marked as 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.
OutOfMemory
InvalidArgument
NotFound
IOError
PipeError
BadFileDescriptor
NotImplemented
OperationNotPermitted
InvalidData
Timeout
InvalidOption(String)
A builder option carried an invalid value (e.g. a non-positive
set_framerate, a non-finite set_ts_scale, an out-of-range
set_io_buffer_size). Setters store values as given and defer
validation to open time, so a bad value surfaces here instead of
panicking in the setter.
UnknownError(i32)
InvalidSource
InvalidFormat(String)
SeekFunctionMissing
Trait Implementations§
Source§impl Debug for OpenInputError
impl Debug for OpenInputError
Source§impl Display for OpenInputError
impl Display for OpenInputError
Source§impl Error for OpenInputError
impl Error for OpenInputError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<OpenInputError> for Error
impl From<OpenInputError> for Error
Source§fn from(source: OpenInputError) -> Self
fn from(source: OpenInputError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenInputError
impl RefUnwindSafe for OpenInputError
impl Send for OpenInputError
impl Sync for OpenInputError
impl Unpin for OpenInputError
impl UnsafeUnpin for OpenInputError
impl UnwindSafe for OpenInputError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more