#[non_exhaustive]pub enum DemuxingOperationError {
ReadFrameError(DemuxingError),
PacketRefError(DemuxingError),
SeekFileError(DemuxingError),
ThreadExited,
}Expand description
Errors from the demuxer stage while reading packets from an input.
Variants carrying a DemuxingError embed the mapped FFmpeg error.
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.
ReadFrameError(DemuxingError)
Returned when reading the next packet from the input fails
(av_read_frame).
PacketRefError(DemuxingError)
Returned when creating an additional reference to a demuxed packet
fails (av_packet_ref).
SeekFileError(DemuxingError)
Returned when seeking in the input fails (avformat_seek_file).
ThreadExited
Returned when spawning the demuxer thread fails, so demuxing never started.
Trait Implementations§
Source§impl Debug for DemuxingOperationError
impl Debug for DemuxingOperationError
Source§impl Display for DemuxingOperationError
impl Display for DemuxingOperationError
Source§impl Error for DemuxingOperationError
impl Error for DemuxingOperationError
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<DemuxingOperationError> for Error
impl From<DemuxingOperationError> for Error
Source§fn from(source: DemuxingOperationError) -> Self
fn from(source: DemuxingOperationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DemuxingOperationError
impl RefUnwindSafe for DemuxingOperationError
impl Send for DemuxingOperationError
impl Sync for DemuxingOperationError
impl Unpin for DemuxingOperationError
impl UnsafeUnpin for DemuxingOperationError
impl UnwindSafe for DemuxingOperationError
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