#[non_exhaustive]pub enum PushError {
InvalidSize {
expected: usize,
got: usize,
},
PipelineClosed,
}Expand description
Errors returned by VideoWriter::write / VideoWriter::write_owned.
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.
InvalidSize
The frame was not exactly VideoWriter::frame_size bytes.
PipelineClosed
The pipeline stopped accepting frames (a worker failed, an Output
limit such as set_max_video_frames completed the job early, or
teardown began). Call VideoWriter::finish for the authoritative
result: the underlying error if one occurred, or Ok when the
pipeline closed after completing normally.
Trait Implementations§
Source§impl Error for PushError
impl Error for PushError
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 PushError
impl RefUnwindSafe for PushError
impl Send for PushError
impl Sync for PushError
impl Unpin for PushError
impl UnsafeUnpin for PushError
impl UnwindSafe for PushError
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