pub enum NewPictureError {
OutOfOutputBuffers,
NoFramePool(Resolution),
BackendError(Error),
}
Expand description
Error returned by new_picture
methods of the backend, usually to indicate which kind of
resource is needed before the picture can be successfully created.
Variants§
OutOfOutputBuffers
Indicates that the backend needs one output buffer to be returned to the pool before it can proceed.
NoFramePool(Resolution)
No frame pool could satisfy the frame requirements. This indicate either an unhandled DRC or an invalid stream.
BackendError(Error)
An unrecoverable backend error has occured.
Trait Implementations§
Source§impl Debug for NewPictureError
impl Debug for NewPictureError
Source§impl Display for NewPictureError
impl Display for NewPictureError
Source§impl Error for NewPictureError
impl Error for NewPictureError
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<Error> for NewPictureError
impl From<Error> for NewPictureError
Source§impl From<NewPictureError> for DecodeError
Convenience conversion for codecs that process a single frame per decode call.
impl From<NewPictureError> for DecodeError
Convenience conversion for codecs that process a single frame per decode call.
Source§fn from(err: NewPictureError) -> Self
fn from(err: NewPictureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NewPictureError
impl RefUnwindSafe for NewPictureError
impl Send for NewPictureError
impl Sync for NewPictureError
impl Unpin for NewPictureError
impl UnwindSafe for NewPictureError
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