#[non_exhaustive]pub enum HwDecodeError {
Unavailable {
codec: HwCodec,
reason: String,
},
Decode {
codec: HwCodec,
message: String,
},
InvalidFrame {
message: String,
},
}Expand description
Errors reported by hardware still-frame decode.
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.
No hardware decoder is available for the codec — none compiled in, or the runtime probe (driver, entry point, codec support) failed.
Decode
The platform decoder accepted the job and then failed.
InvalidFrame
A DecodedFrame failed validation (backend bug or corrupted
output).
Trait Implementations§
Source§impl Debug for HwDecodeError
impl Debug for HwDecodeError
Source§impl Display for HwDecodeError
impl Display for HwDecodeError
Source§impl Error for HwDecodeError
impl Error for HwDecodeError
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()
Auto Trait Implementations§
impl Freeze for HwDecodeError
impl RefUnwindSafe for HwDecodeError
impl Send for HwDecodeError
impl Sync for HwDecodeError
impl Unpin for HwDecodeError
impl UnsafeUnpin for HwDecodeError
impl UnwindSafe for HwDecodeError
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