#[non_exhaustive]pub enum FrameWritableError {
OutOfMemory,
InvalidArgument,
UnknownError(i32),
}Expand description
Errors from make_frame_writable, the safe wrapper over FFmpeg’s
av_frame_make_writable: ensuring exclusive ownership of a frame’s data
buffers may allocate new buffers and copy into them, and that underlying
call can fail. Common AVERROR codes map to named variants; anything else
carries the raw code.
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.
Trait Implementations§
Source§impl Debug for FrameWritableError
impl Debug for FrameWritableError
Source§impl Display for FrameWritableError
impl Display for FrameWritableError
Source§impl Error for FrameWritableError
impl Error for FrameWritableError
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()
Source§impl From<FrameWritableError> for Error
impl From<FrameWritableError> for Error
Source§fn from(source: FrameWritableError) -> Self
fn from(source: FrameWritableError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FrameWritableError
impl RefUnwindSafe for FrameWritableError
impl Send for FrameWritableError
impl Sync for FrameWritableError
impl Unpin for FrameWritableError
impl UnsafeUnpin for FrameWritableError
impl UnwindSafe for FrameWritableError
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