#[non_exhaustive]pub enum Error {
Codec {
library: &'static str,
operation: &'static str,
message: String,
},
InvalidFrame(String),
InvalidConfig(String),
HardwareUnavailable {
encoder: HardwareEncoder,
reason: String,
},
NotBuilt {
what: &'static str,
},
}Expand description
What can go wrong in 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.
Codec
A call into a codec library or GPU driver failed.
Fields
InvalidFrame(String)
A picture or compressed frame that cannot be used.
InvalidConfig(String)
A configuration the encoder cannot run with.
The hardware encoder can’t be used here (build, driver or GPU); use a software encoder.
NotBuilt
A codec whose cargo feature is switched off in this build.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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