#[non_exhaustive]pub enum FrameExportError {
NoVideoStream,
StreamIndexOutOfBounds {
index: usize,
count: usize,
},
NotAVideoStream {
index: usize,
},
UnknownDuration,
HdrRequiresToneMapping,
EmptyVideoStream {
n: u32,
},
InvalidOption(String),
NoAudioStream,
AudioStreamIndexOutOfBounds {
index: usize,
count: usize,
},
NotAnAudioStream {
index: usize,
},
}Expand description
Something wrong with a frame-export request or run.
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.
NoVideoStream
The input has no video stream to export from.
StreamIndexOutOfBounds
An explicit video_stream_index was out of range.
Fields
NotAVideoStream
An explicit video_stream_index referred to a non-video stream.
UnknownDuration
UniformN needs a duration, and none could be resolved.
HdrRequiresToneMapping
The input is HDR (BT.2020 / PQ / HLG). Tone mapping is a documented non-goal of this module.
EmptyVideoStream
UniformN(n) was requested but the video stream produced no frames.
InvalidOption(String)
An option value was invalid (zero count, zero size, non-finite seconds, …).
NoAudioStream
The input has no audio stream to export from.
AudioStreamIndexOutOfBounds
An explicit audio_stream_index was out of range.
Fields
NotAnAudioStream
An explicit audio_stream_index referred to a non-audio stream.
Trait Implementations§
Source§impl Debug for FrameExportError
impl Debug for FrameExportError
Source§impl Display for FrameExportError
impl Display for FrameExportError
Source§impl Error for FrameExportError
impl Error for FrameExportError
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<FrameExportError> for Error
impl From<FrameExportError> for Error
Source§fn from(source: FrameExportError) -> Self
fn from(source: FrameExportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FrameExportError
impl RefUnwindSafe for FrameExportError
impl Send for FrameExportError
impl Sync for FrameExportError
impl Unpin for FrameExportError
impl UnsafeUnpin for FrameExportError
impl UnwindSafe for FrameExportError
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