#[non_exhaustive]pub enum BridgeError {
InvalidInput(&'static str),
Ffmpeg(RsmpegError),
FfmpegCode(i32),
NativeGpu(NativeGpuFailure),
MissingHwDevice(&'static str),
}Expand description
Failure returned by an operation of this crate.
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.
InvalidInput(&'static str)
The caller supplied invalid dimensions or a mismatched byte count.
Ffmpeg(RsmpegError)
FFmpeg could not allocate or prepare its destination frame.
FfmpegCode(i32)
An FFmpeg operation returned a negative AVERROR code. Only
FFmpeg’s own codes: a platform GPU status is Self::NativeGpu.
NativeGpu(NativeGpuFailure)
A platform GPU call a native interop helper made failed: which API, which step, and the status it returned.
MissingHwDevice(&'static str)
The loaded FFmpeg was built without this hardware device type: which
ones it has is a property of the runtime libraries, not of this build.
Implementations§
Trait Implementations§
Source§impl Debug for BridgeError
impl Debug for BridgeError
Source§impl Display for BridgeError
impl Display for BridgeError
Source§impl Error for BridgeError
impl Error for BridgeError
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<RsmpegError> for BridgeError
impl From<RsmpegError> for BridgeError
Source§fn from(error: RsmpegError) -> Self
fn from(error: RsmpegError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BridgeError
impl RefUnwindSafe for BridgeError
impl Send for BridgeError
impl Sync for BridgeError
impl Unpin for BridgeError
impl UnsafeUnpin for BridgeError
impl UnwindSafe for BridgeError
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