pub enum MppError {
LibraryNotFound,
SymbolMissing(&'static str),
CallFailed {
op: &'static str,
status: i32,
},
InvalidConfig(String),
NotInitialised,
WouldBlock,
}Expand description
Errors from MPP encoder operations.
Variants§
LibraryNotFound
librockchip_mpp.so not found on this host.
SymbolMissing(&'static str)
Required MPP function symbol missing from loaded library.
CallFailed
MPP returned non-zero status code from a call.
InvalidConfig(String)
User passed an invalid encoder configuration.
NotInitialised
MPP context not initialised yet.
WouldBlock
MPP encoder reported buffer-not-ready for non-blocking call.
Trait Implementations§
Source§impl Error for MppError
impl Error for MppError
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 MppError
impl RefUnwindSafe for MppError
impl Send for MppError
impl Sync for MppError
impl Unpin for MppError
impl UnsafeUnpin for MppError
impl UnwindSafe for MppError
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