pub struct HardwareOpenError {
pub reason: HardwareDecodeFallback,
pub source: DecodeError,
}Expand description
A hardware decode session that could not be opened, with its typed reason.
Fields§
§reason: HardwareDecodeFallbackWhy the hardware path is unavailable for this source.
source: DecodeErrorThe underlying decode failure.
Implementations§
Source§impl HardwareOpenError
impl HardwareOpenError
Sourcepub const fn new(reason: HardwareDecodeFallback, source: DecodeError) -> Self
pub const fn new(reason: HardwareDecodeFallback, source: DecodeError) -> Self
Pairs a decode failure with the reason a caller should record.
Trait Implementations§
Source§impl Debug for HardwareOpenError
impl Debug for HardwareOpenError
Source§impl Display for HardwareOpenError
impl Display for HardwareOpenError
Source§impl Error for HardwareOpenError
impl Error for HardwareOpenError
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 HardwareOpenError
impl RefUnwindSafe for HardwareOpenError
impl Send for HardwareOpenError
impl Sync for HardwareOpenError
impl Unpin for HardwareOpenError
impl UnsafeUnpin for HardwareOpenError
impl UnwindSafe for HardwareOpenError
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