#[non_exhaustive]pub enum DemuxError {
Show 25 variants
Ffmpeg(Error),
ProbeBudgetExhausted(ProbeBudgetExhausted),
AttachmentTooLarge(AttachmentTooLarge),
AttachmentBudgetExhausted(AttachmentBudgetExhausted),
ParametersTooLarge(ParametersTooLarge),
ParametersBudgetExhausted(ParametersBudgetExhausted),
ParametersMissing(ParametersMissing),
ParametersAlloc(ParametersAlloc),
ParametersCopy(ParametersCopy),
ParametersOpaque(ParametersOpaque),
ParametersChannelMap(ParametersChannelMap),
ParametersLayoutShape(ParametersLayoutShape),
TrackTimebaseInvalid(TrackTimebaseInvalid),
ChapterTimebaseInvalid(ChapterTimebaseInvalid),
TooManyChapters(TooManyChapters),
ChapterTitleBudgetExhausted(ChapterTitleBudgetExhausted),
ChapterTitleTooLong(ChapterTitleTooLong),
ChapterTitleAlloc(ChapterTitleAlloc),
TrackMetadataTooLong(TrackMetadataTooLong),
TrackMetadataBudgetExhausted(TrackMetadataBudgetExhausted),
TrackMetadataAlloc(TrackMetadataAlloc),
ChapterAlloc(ChapterAlloc),
TrackTableAlloc(TrackTableAlloc),
PacketBuffer(PacketBuffer),
ReaderPanic(ReaderPanic),
}Expand description
Errors from [FfmpegDemuxer].
Open fault taxonomy, so it is #[non_exhaustive]. New ways to
fail are discovered — a backend, a ceiling, a corruption a codec
learns to report — and a consumer that meets one it has never heard
of should take its generic-fault path. That is exactly what the
wildcard arm this attribute forces is for. The two status
vocabularies opposite it,
Sent and Received,
are exhaustive for the mirror-image reason: their arms are the
substrate’s fixed state set, and there the wildcard would be dead
weight hiding a state a consumer forgot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ffmpeg(Error)
The wrapped libavformat call reported an error — open, read or seek.
ProbeBudgetExhausted(ProbeBudgetExhausted)
libavformat asked for more bytes than the probe budget allows
while opening and analysing the container. See
ProbeBudgetExhausted.
AttachmentTooLarge(AttachmentTooLarge)
One attachment’s payload is over the per-attachment budget. Refused at open, before the copy.
AttachmentBudgetExhausted(AttachmentBudgetExhausted)
The file’s attachments, together, are over the whole-file budget. Refused at open, before the copy that would have crossed it.
ParametersTooLarge(ParametersTooLarge)
One stream’s codec parameters hold more heap bytes than the budget allows. Refused at open, before the clone.
ParametersBudgetExhausted(ParametersBudgetExhausted)
Every stream’s codec parameters together are over the whole-file budget. Refused at open, before the clone that would have crossed it.
ParametersMissing(ParametersMissing)
Codec parameters arrived that were never allocated.
ParametersAlloc(ParametersAlloc)
Codec parameters for a track could not be allocated.
ParametersCopy(ParametersCopy)
Copying a track’s codec parameters failed part way.
ParametersOpaque(ParametersOpaque)
A channel layout arrived carrying user-private data an owned codec ticket cannot mirror.
ParametersChannelMap(ParametersChannelMap)
A channel layout declared a custom order without the map that
order requires — a shape av_channel_layout_copy would memcpy
from null.
ParametersLayoutShape(ParametersLayoutShape)
A stream’s channel layout declares a shape FFmpeg’s own helpers
cannot be given — see ParametersLayoutShape.
TrackTimebaseInvalid(TrackTimebaseInvalid)
A stream declares a timebase that is not one. Refused at open, rather than repaired with a number this crate would have had to invent.
ChapterTimebaseInvalid(ChapterTimebaseInvalid)
A chapter declares a timebase that cannot rule its span. Refused
at open, for the reason ChapterTimebaseInvalid gives.
TooManyChapters(TooManyChapters)
The container declares more chapters than the ceiling allows. Refused at open, before the table is reserved.
ChapterTitleBudgetExhausted(ChapterTitleBudgetExhausted)
The file’s chapter titles, together, are over the whole-file budget. Refused at the title that crossed it, before it was copied.
ChapterTitleTooLong(ChapterTitleTooLong)
One chapter title runs past the cap on a single metadata value — refused, rather than reported as an absent title.
ChapterTitleAlloc(ChapterTitleAlloc)
A chapter title the budget admitted could not be decoded.
TrackMetadataTooLong(TrackMetadataTooLong)
One of a stream’s retained metadata values runs past the cap on a single metadata value.
TrackMetadataBudgetExhausted(TrackMetadataBudgetExhausted)
The file’s stream metadata, together, is over the whole-file budget. Refused at the value that crossed it, before it was copied.
TrackMetadataAlloc(TrackMetadataAlloc)
A stream metadata value the budget admitted could not be decoded.
ChapterAlloc(ChapterAlloc)
The chapter table could not be reserved.
TrackTableAlloc(TrackTableAlloc)
The track table, or the attachment queue beside it, could not be reserved.
PacketBuffer(PacketBuffer)
A packet’s payload could not be referenced — the bytes are there and this layer could not carry them.
ReaderPanic(ReaderPanic)
The Read + Seek source given to
[FfmpegDemuxer::open_reader] panicked inside a libavformat
callback.
Implementations§
Source§impl DemuxError
impl DemuxError
Sourcepub const fn is_ffmpeg(&self) -> bool
pub const fn is_ffmpeg(&self) -> bool
Returns true if this value is of type Ffmpeg. Returns false otherwise
Sourcepub const fn is_probe_budget_exhausted(&self) -> bool
pub const fn is_probe_budget_exhausted(&self) -> bool
Returns true if this value is of type ProbeBudgetExhausted. Returns false otherwise
Sourcepub const fn is_attachment_too_large(&self) -> bool
pub const fn is_attachment_too_large(&self) -> bool
Returns true if this value is of type AttachmentTooLarge. Returns false otherwise
Sourcepub const fn is_attachment_budget_exhausted(&self) -> bool
pub const fn is_attachment_budget_exhausted(&self) -> bool
Returns true if this value is of type AttachmentBudgetExhausted. Returns false otherwise
Sourcepub const fn is_parameters_too_large(&self) -> bool
pub const fn is_parameters_too_large(&self) -> bool
Returns true if this value is of type ParametersTooLarge. Returns false otherwise
Sourcepub const fn is_parameters_budget_exhausted(&self) -> bool
pub const fn is_parameters_budget_exhausted(&self) -> bool
Returns true if this value is of type ParametersBudgetExhausted. Returns false otherwise
Sourcepub const fn is_parameters_missing(&self) -> bool
pub const fn is_parameters_missing(&self) -> bool
Returns true if this value is of type ParametersMissing. Returns false otherwise
Sourcepub const fn is_parameters_alloc(&self) -> bool
pub const fn is_parameters_alloc(&self) -> bool
Returns true if this value is of type ParametersAlloc. Returns false otherwise
Sourcepub const fn is_parameters_copy(&self) -> bool
pub const fn is_parameters_copy(&self) -> bool
Returns true if this value is of type ParametersCopy. Returns false otherwise
Sourcepub const fn is_parameters_opaque(&self) -> bool
pub const fn is_parameters_opaque(&self) -> bool
Returns true if this value is of type ParametersOpaque. Returns false otherwise
Sourcepub const fn is_parameters_channel_map(&self) -> bool
pub const fn is_parameters_channel_map(&self) -> bool
Returns true if this value is of type ParametersChannelMap. Returns false otherwise
Sourcepub const fn is_parameters_layout_shape(&self) -> bool
pub const fn is_parameters_layout_shape(&self) -> bool
Returns true if this value is of type ParametersLayoutShape. Returns false otherwise
Sourcepub const fn is_track_timebase_invalid(&self) -> bool
pub const fn is_track_timebase_invalid(&self) -> bool
Returns true if this value is of type TrackTimebaseInvalid. Returns false otherwise
Sourcepub const fn is_chapter_timebase_invalid(&self) -> bool
pub const fn is_chapter_timebase_invalid(&self) -> bool
Returns true if this value is of type ChapterTimebaseInvalid. Returns false otherwise
Sourcepub const fn is_too_many_chapters(&self) -> bool
pub const fn is_too_many_chapters(&self) -> bool
Returns true if this value is of type TooManyChapters. Returns false otherwise
Sourcepub const fn is_chapter_title_budget_exhausted(&self) -> bool
pub const fn is_chapter_title_budget_exhausted(&self) -> bool
Returns true if this value is of type ChapterTitleBudgetExhausted. Returns false otherwise
Sourcepub const fn is_chapter_title_too_long(&self) -> bool
pub const fn is_chapter_title_too_long(&self) -> bool
Returns true if this value is of type ChapterTitleTooLong. Returns false otherwise
Sourcepub const fn is_chapter_title_alloc(&self) -> bool
pub const fn is_chapter_title_alloc(&self) -> bool
Returns true if this value is of type ChapterTitleAlloc. Returns false otherwise
Sourcepub const fn is_track_metadata_too_long(&self) -> bool
pub const fn is_track_metadata_too_long(&self) -> bool
Returns true if this value is of type TrackMetadataTooLong. Returns false otherwise
Sourcepub const fn is_track_metadata_budget_exhausted(&self) -> bool
pub const fn is_track_metadata_budget_exhausted(&self) -> bool
Returns true if this value is of type TrackMetadataBudgetExhausted. Returns false otherwise
Sourcepub const fn is_track_metadata_alloc(&self) -> bool
pub const fn is_track_metadata_alloc(&self) -> bool
Returns true if this value is of type TrackMetadataAlloc. Returns false otherwise
Sourcepub const fn is_chapter_alloc(&self) -> bool
pub const fn is_chapter_alloc(&self) -> bool
Returns true if this value is of type ChapterAlloc. Returns false otherwise
Sourcepub const fn is_track_table_alloc(&self) -> bool
pub const fn is_track_table_alloc(&self) -> bool
Returns true if this value is of type TrackTableAlloc. Returns false otherwise
Sourcepub const fn is_packet_buffer(&self) -> bool
pub const fn is_packet_buffer(&self) -> bool
Returns true if this value is of type PacketBuffer. Returns false otherwise
Sourcepub const fn is_reader_panic(&self) -> bool
pub const fn is_reader_panic(&self) -> bool
Returns true if this value is of type ReaderPanic. Returns false otherwise
Source§impl DemuxError
impl DemuxError
Sourcepub fn unwrap_ffmpeg(self) -> Error
pub fn unwrap_ffmpeg(self) -> Error
Unwraps this value to the DemuxError::Ffmpeg variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ffmpeg_ref(&self) -> &Error
pub fn unwrap_ffmpeg_ref(&self) -> &Error
Unwraps this reference to the DemuxError::Ffmpeg variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_ffmpeg_mut(&mut self) -> &mut Error
pub fn unwrap_ffmpeg_mut(&mut self) -> &mut Error
Unwraps this mutable reference to the DemuxError::Ffmpeg variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_probe_budget_exhausted(self) -> ProbeBudgetExhausted
pub fn unwrap_probe_budget_exhausted(self) -> ProbeBudgetExhausted
Unwraps this value to the DemuxError::ProbeBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_probe_budget_exhausted_ref(&self) -> &ProbeBudgetExhausted
pub fn unwrap_probe_budget_exhausted_ref(&self) -> &ProbeBudgetExhausted
Unwraps this reference to the DemuxError::ProbeBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_probe_budget_exhausted_mut(&mut self) -> &mut ProbeBudgetExhausted
pub fn unwrap_probe_budget_exhausted_mut(&mut self) -> &mut ProbeBudgetExhausted
Unwraps this mutable reference to the DemuxError::ProbeBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_attachment_too_large(self) -> AttachmentTooLarge
pub fn unwrap_attachment_too_large(self) -> AttachmentTooLarge
Unwraps this value to the DemuxError::AttachmentTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_attachment_too_large_ref(&self) -> &AttachmentTooLarge
pub fn unwrap_attachment_too_large_ref(&self) -> &AttachmentTooLarge
Unwraps this reference to the DemuxError::AttachmentTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_attachment_too_large_mut(&mut self) -> &mut AttachmentTooLarge
pub fn unwrap_attachment_too_large_mut(&mut self) -> &mut AttachmentTooLarge
Unwraps this mutable reference to the DemuxError::AttachmentTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_attachment_budget_exhausted(self) -> AttachmentBudgetExhausted
pub fn unwrap_attachment_budget_exhausted(self) -> AttachmentBudgetExhausted
Unwraps this value to the DemuxError::AttachmentBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_attachment_budget_exhausted_ref(
&self,
) -> &AttachmentBudgetExhausted
pub fn unwrap_attachment_budget_exhausted_ref( &self, ) -> &AttachmentBudgetExhausted
Unwraps this reference to the DemuxError::AttachmentBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_attachment_budget_exhausted_mut(
&mut self,
) -> &mut AttachmentBudgetExhausted
pub fn unwrap_attachment_budget_exhausted_mut( &mut self, ) -> &mut AttachmentBudgetExhausted
Unwraps this mutable reference to the DemuxError::AttachmentBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_too_large(self) -> ParametersTooLarge
pub fn unwrap_parameters_too_large(self) -> ParametersTooLarge
Unwraps this value to the DemuxError::ParametersTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_too_large_ref(&self) -> &ParametersTooLarge
pub fn unwrap_parameters_too_large_ref(&self) -> &ParametersTooLarge
Unwraps this reference to the DemuxError::ParametersTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_too_large_mut(&mut self) -> &mut ParametersTooLarge
pub fn unwrap_parameters_too_large_mut(&mut self) -> &mut ParametersTooLarge
Unwraps this mutable reference to the DemuxError::ParametersTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_budget_exhausted(self) -> ParametersBudgetExhausted
pub fn unwrap_parameters_budget_exhausted(self) -> ParametersBudgetExhausted
Unwraps this value to the DemuxError::ParametersBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_budget_exhausted_ref(
&self,
) -> &ParametersBudgetExhausted
pub fn unwrap_parameters_budget_exhausted_ref( &self, ) -> &ParametersBudgetExhausted
Unwraps this reference to the DemuxError::ParametersBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_budget_exhausted_mut(
&mut self,
) -> &mut ParametersBudgetExhausted
pub fn unwrap_parameters_budget_exhausted_mut( &mut self, ) -> &mut ParametersBudgetExhausted
Unwraps this mutable reference to the DemuxError::ParametersBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_missing(self) -> ParametersMissing
pub fn unwrap_parameters_missing(self) -> ParametersMissing
Unwraps this value to the DemuxError::ParametersMissing variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_missing_ref(&self) -> &ParametersMissing
pub fn unwrap_parameters_missing_ref(&self) -> &ParametersMissing
Unwraps this reference to the DemuxError::ParametersMissing variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_missing_mut(&mut self) -> &mut ParametersMissing
pub fn unwrap_parameters_missing_mut(&mut self) -> &mut ParametersMissing
Unwraps this mutable reference to the DemuxError::ParametersMissing variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_alloc(self) -> ParametersAlloc
pub fn unwrap_parameters_alloc(self) -> ParametersAlloc
Unwraps this value to the DemuxError::ParametersAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_alloc_ref(&self) -> &ParametersAlloc
pub fn unwrap_parameters_alloc_ref(&self) -> &ParametersAlloc
Unwraps this reference to the DemuxError::ParametersAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_alloc_mut(&mut self) -> &mut ParametersAlloc
pub fn unwrap_parameters_alloc_mut(&mut self) -> &mut ParametersAlloc
Unwraps this mutable reference to the DemuxError::ParametersAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_copy(self) -> ParametersCopy
pub fn unwrap_parameters_copy(self) -> ParametersCopy
Unwraps this value to the DemuxError::ParametersCopy variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_copy_ref(&self) -> &ParametersCopy
pub fn unwrap_parameters_copy_ref(&self) -> &ParametersCopy
Unwraps this reference to the DemuxError::ParametersCopy variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_copy_mut(&mut self) -> &mut ParametersCopy
pub fn unwrap_parameters_copy_mut(&mut self) -> &mut ParametersCopy
Unwraps this mutable reference to the DemuxError::ParametersCopy variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_opaque(self) -> ParametersOpaque
pub fn unwrap_parameters_opaque(self) -> ParametersOpaque
Unwraps this value to the DemuxError::ParametersOpaque variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_opaque_ref(&self) -> &ParametersOpaque
pub fn unwrap_parameters_opaque_ref(&self) -> &ParametersOpaque
Unwraps this reference to the DemuxError::ParametersOpaque variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_opaque_mut(&mut self) -> &mut ParametersOpaque
pub fn unwrap_parameters_opaque_mut(&mut self) -> &mut ParametersOpaque
Unwraps this mutable reference to the DemuxError::ParametersOpaque variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_channel_map(self) -> ParametersChannelMap
pub fn unwrap_parameters_channel_map(self) -> ParametersChannelMap
Unwraps this value to the DemuxError::ParametersChannelMap variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_channel_map_ref(&self) -> &ParametersChannelMap
pub fn unwrap_parameters_channel_map_ref(&self) -> &ParametersChannelMap
Unwraps this reference to the DemuxError::ParametersChannelMap variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_channel_map_mut(&mut self) -> &mut ParametersChannelMap
pub fn unwrap_parameters_channel_map_mut(&mut self) -> &mut ParametersChannelMap
Unwraps this mutable reference to the DemuxError::ParametersChannelMap variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_layout_shape(self) -> ParametersLayoutShape
pub fn unwrap_parameters_layout_shape(self) -> ParametersLayoutShape
Unwraps this value to the DemuxError::ParametersLayoutShape variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_layout_shape_ref(&self) -> &ParametersLayoutShape
pub fn unwrap_parameters_layout_shape_ref(&self) -> &ParametersLayoutShape
Unwraps this reference to the DemuxError::ParametersLayoutShape variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_parameters_layout_shape_mut(
&mut self,
) -> &mut ParametersLayoutShape
pub fn unwrap_parameters_layout_shape_mut( &mut self, ) -> &mut ParametersLayoutShape
Unwraps this mutable reference to the DemuxError::ParametersLayoutShape variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_timebase_invalid(self) -> TrackTimebaseInvalid
pub fn unwrap_track_timebase_invalid(self) -> TrackTimebaseInvalid
Unwraps this value to the DemuxError::TrackTimebaseInvalid variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_timebase_invalid_ref(&self) -> &TrackTimebaseInvalid
pub fn unwrap_track_timebase_invalid_ref(&self) -> &TrackTimebaseInvalid
Unwraps this reference to the DemuxError::TrackTimebaseInvalid variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_timebase_invalid_mut(&mut self) -> &mut TrackTimebaseInvalid
pub fn unwrap_track_timebase_invalid_mut(&mut self) -> &mut TrackTimebaseInvalid
Unwraps this mutable reference to the DemuxError::TrackTimebaseInvalid variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_timebase_invalid(self) -> ChapterTimebaseInvalid
pub fn unwrap_chapter_timebase_invalid(self) -> ChapterTimebaseInvalid
Unwraps this value to the DemuxError::ChapterTimebaseInvalid variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_timebase_invalid_ref(&self) -> &ChapterTimebaseInvalid
pub fn unwrap_chapter_timebase_invalid_ref(&self) -> &ChapterTimebaseInvalid
Unwraps this reference to the DemuxError::ChapterTimebaseInvalid variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_timebase_invalid_mut(
&mut self,
) -> &mut ChapterTimebaseInvalid
pub fn unwrap_chapter_timebase_invalid_mut( &mut self, ) -> &mut ChapterTimebaseInvalid
Unwraps this mutable reference to the DemuxError::ChapterTimebaseInvalid variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_too_many_chapters(self) -> TooManyChapters
pub fn unwrap_too_many_chapters(self) -> TooManyChapters
Unwraps this value to the DemuxError::TooManyChapters variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_too_many_chapters_ref(&self) -> &TooManyChapters
pub fn unwrap_too_many_chapters_ref(&self) -> &TooManyChapters
Unwraps this reference to the DemuxError::TooManyChapters variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_too_many_chapters_mut(&mut self) -> &mut TooManyChapters
pub fn unwrap_too_many_chapters_mut(&mut self) -> &mut TooManyChapters
Unwraps this mutable reference to the DemuxError::TooManyChapters variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_title_budget_exhausted(
self,
) -> ChapterTitleBudgetExhausted
pub fn unwrap_chapter_title_budget_exhausted( self, ) -> ChapterTitleBudgetExhausted
Unwraps this value to the DemuxError::ChapterTitleBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_title_budget_exhausted_ref(
&self,
) -> &ChapterTitleBudgetExhausted
pub fn unwrap_chapter_title_budget_exhausted_ref( &self, ) -> &ChapterTitleBudgetExhausted
Unwraps this reference to the DemuxError::ChapterTitleBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_title_budget_exhausted_mut(
&mut self,
) -> &mut ChapterTitleBudgetExhausted
pub fn unwrap_chapter_title_budget_exhausted_mut( &mut self, ) -> &mut ChapterTitleBudgetExhausted
Unwraps this mutable reference to the DemuxError::ChapterTitleBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_title_too_long(self) -> ChapterTitleTooLong
pub fn unwrap_chapter_title_too_long(self) -> ChapterTitleTooLong
Unwraps this value to the DemuxError::ChapterTitleTooLong variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_title_too_long_ref(&self) -> &ChapterTitleTooLong
pub fn unwrap_chapter_title_too_long_ref(&self) -> &ChapterTitleTooLong
Unwraps this reference to the DemuxError::ChapterTitleTooLong variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_title_too_long_mut(&mut self) -> &mut ChapterTitleTooLong
pub fn unwrap_chapter_title_too_long_mut(&mut self) -> &mut ChapterTitleTooLong
Unwraps this mutable reference to the DemuxError::ChapterTitleTooLong variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_title_alloc(self) -> ChapterTitleAlloc
pub fn unwrap_chapter_title_alloc(self) -> ChapterTitleAlloc
Unwraps this value to the DemuxError::ChapterTitleAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_title_alloc_ref(&self) -> &ChapterTitleAlloc
pub fn unwrap_chapter_title_alloc_ref(&self) -> &ChapterTitleAlloc
Unwraps this reference to the DemuxError::ChapterTitleAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_title_alloc_mut(&mut self) -> &mut ChapterTitleAlloc
pub fn unwrap_chapter_title_alloc_mut(&mut self) -> &mut ChapterTitleAlloc
Unwraps this mutable reference to the DemuxError::ChapterTitleAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_metadata_too_long(self) -> TrackMetadataTooLong
pub fn unwrap_track_metadata_too_long(self) -> TrackMetadataTooLong
Unwraps this value to the DemuxError::TrackMetadataTooLong variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_metadata_too_long_ref(&self) -> &TrackMetadataTooLong
pub fn unwrap_track_metadata_too_long_ref(&self) -> &TrackMetadataTooLong
Unwraps this reference to the DemuxError::TrackMetadataTooLong variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_metadata_too_long_mut(
&mut self,
) -> &mut TrackMetadataTooLong
pub fn unwrap_track_metadata_too_long_mut( &mut self, ) -> &mut TrackMetadataTooLong
Unwraps this mutable reference to the DemuxError::TrackMetadataTooLong variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_metadata_budget_exhausted(
self,
) -> TrackMetadataBudgetExhausted
pub fn unwrap_track_metadata_budget_exhausted( self, ) -> TrackMetadataBudgetExhausted
Unwraps this value to the DemuxError::TrackMetadataBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_metadata_budget_exhausted_ref(
&self,
) -> &TrackMetadataBudgetExhausted
pub fn unwrap_track_metadata_budget_exhausted_ref( &self, ) -> &TrackMetadataBudgetExhausted
Unwraps this reference to the DemuxError::TrackMetadataBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_metadata_budget_exhausted_mut(
&mut self,
) -> &mut TrackMetadataBudgetExhausted
pub fn unwrap_track_metadata_budget_exhausted_mut( &mut self, ) -> &mut TrackMetadataBudgetExhausted
Unwraps this mutable reference to the DemuxError::TrackMetadataBudgetExhausted variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_metadata_alloc(self) -> TrackMetadataAlloc
pub fn unwrap_track_metadata_alloc(self) -> TrackMetadataAlloc
Unwraps this value to the DemuxError::TrackMetadataAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_metadata_alloc_ref(&self) -> &TrackMetadataAlloc
pub fn unwrap_track_metadata_alloc_ref(&self) -> &TrackMetadataAlloc
Unwraps this reference to the DemuxError::TrackMetadataAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_metadata_alloc_mut(&mut self) -> &mut TrackMetadataAlloc
pub fn unwrap_track_metadata_alloc_mut(&mut self) -> &mut TrackMetadataAlloc
Unwraps this mutable reference to the DemuxError::TrackMetadataAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_alloc(self) -> ChapterAlloc
pub fn unwrap_chapter_alloc(self) -> ChapterAlloc
Unwraps this value to the DemuxError::ChapterAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_alloc_ref(&self) -> &ChapterAlloc
pub fn unwrap_chapter_alloc_ref(&self) -> &ChapterAlloc
Unwraps this reference to the DemuxError::ChapterAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_chapter_alloc_mut(&mut self) -> &mut ChapterAlloc
pub fn unwrap_chapter_alloc_mut(&mut self) -> &mut ChapterAlloc
Unwraps this mutable reference to the DemuxError::ChapterAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_table_alloc(self) -> TrackTableAlloc
pub fn unwrap_track_table_alloc(self) -> TrackTableAlloc
Unwraps this value to the DemuxError::TrackTableAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_table_alloc_ref(&self) -> &TrackTableAlloc
pub fn unwrap_track_table_alloc_ref(&self) -> &TrackTableAlloc
Unwraps this reference to the DemuxError::TrackTableAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_track_table_alloc_mut(&mut self) -> &mut TrackTableAlloc
pub fn unwrap_track_table_alloc_mut(&mut self) -> &mut TrackTableAlloc
Unwraps this mutable reference to the DemuxError::TrackTableAlloc variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_packet_buffer(self) -> PacketBuffer
pub fn unwrap_packet_buffer(self) -> PacketBuffer
Unwraps this value to the DemuxError::PacketBuffer variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_packet_buffer_ref(&self) -> &PacketBuffer
pub fn unwrap_packet_buffer_ref(&self) -> &PacketBuffer
Unwraps this reference to the DemuxError::PacketBuffer variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_packet_buffer_mut(&mut self) -> &mut PacketBuffer
pub fn unwrap_packet_buffer_mut(&mut self) -> &mut PacketBuffer
Unwraps this mutable reference to the DemuxError::PacketBuffer variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_reader_panic(self) -> ReaderPanic
pub fn unwrap_reader_panic(self) -> ReaderPanic
Unwraps this value to the DemuxError::ReaderPanic variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_reader_panic_ref(&self) -> &ReaderPanic
pub fn unwrap_reader_panic_ref(&self) -> &ReaderPanic
Unwraps this reference to the DemuxError::ReaderPanic variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_reader_panic_mut(&mut self) -> &mut ReaderPanic
pub fn unwrap_reader_panic_mut(&mut self) -> &mut ReaderPanic
Unwraps this mutable reference to the DemuxError::ReaderPanic variant.
Panics if this value is of any other type.
Source§impl DemuxError
impl DemuxError
Sourcepub fn try_unwrap_ffmpeg(self) -> Result<Error, TryUnwrapError<Self>>
pub fn try_unwrap_ffmpeg(self) -> Result<Error, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::Ffmpeg variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ffmpeg_ref(&self) -> Result<&Error, TryUnwrapError<&Self>>
pub fn try_unwrap_ffmpeg_ref(&self) -> Result<&Error, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::Ffmpeg variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_ffmpeg_mut(
&mut self,
) -> Result<&mut Error, TryUnwrapError<&mut Self>>
pub fn try_unwrap_ffmpeg_mut( &mut self, ) -> Result<&mut Error, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::Ffmpeg variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_probe_budget_exhausted(
self,
) -> Result<ProbeBudgetExhausted, TryUnwrapError<Self>>
pub fn try_unwrap_probe_budget_exhausted( self, ) -> Result<ProbeBudgetExhausted, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ProbeBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_probe_budget_exhausted_ref(
&self,
) -> Result<&ProbeBudgetExhausted, TryUnwrapError<&Self>>
pub fn try_unwrap_probe_budget_exhausted_ref( &self, ) -> Result<&ProbeBudgetExhausted, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ProbeBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_probe_budget_exhausted_mut(
&mut self,
) -> Result<&mut ProbeBudgetExhausted, TryUnwrapError<&mut Self>>
pub fn try_unwrap_probe_budget_exhausted_mut( &mut self, ) -> Result<&mut ProbeBudgetExhausted, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ProbeBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_attachment_too_large(
self,
) -> Result<AttachmentTooLarge, TryUnwrapError<Self>>
pub fn try_unwrap_attachment_too_large( self, ) -> Result<AttachmentTooLarge, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::AttachmentTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_attachment_too_large_ref(
&self,
) -> Result<&AttachmentTooLarge, TryUnwrapError<&Self>>
pub fn try_unwrap_attachment_too_large_ref( &self, ) -> Result<&AttachmentTooLarge, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::AttachmentTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_attachment_too_large_mut(
&mut self,
) -> Result<&mut AttachmentTooLarge, TryUnwrapError<&mut Self>>
pub fn try_unwrap_attachment_too_large_mut( &mut self, ) -> Result<&mut AttachmentTooLarge, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::AttachmentTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_attachment_budget_exhausted(
self,
) -> Result<AttachmentBudgetExhausted, TryUnwrapError<Self>>
pub fn try_unwrap_attachment_budget_exhausted( self, ) -> Result<AttachmentBudgetExhausted, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::AttachmentBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_attachment_budget_exhausted_ref(
&self,
) -> Result<&AttachmentBudgetExhausted, TryUnwrapError<&Self>>
pub fn try_unwrap_attachment_budget_exhausted_ref( &self, ) -> Result<&AttachmentBudgetExhausted, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::AttachmentBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_attachment_budget_exhausted_mut(
&mut self,
) -> Result<&mut AttachmentBudgetExhausted, TryUnwrapError<&mut Self>>
pub fn try_unwrap_attachment_budget_exhausted_mut( &mut self, ) -> Result<&mut AttachmentBudgetExhausted, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::AttachmentBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_too_large(
self,
) -> Result<ParametersTooLarge, TryUnwrapError<Self>>
pub fn try_unwrap_parameters_too_large( self, ) -> Result<ParametersTooLarge, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ParametersTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_too_large_ref(
&self,
) -> Result<&ParametersTooLarge, TryUnwrapError<&Self>>
pub fn try_unwrap_parameters_too_large_ref( &self, ) -> Result<&ParametersTooLarge, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ParametersTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_too_large_mut(
&mut self,
) -> Result<&mut ParametersTooLarge, TryUnwrapError<&mut Self>>
pub fn try_unwrap_parameters_too_large_mut( &mut self, ) -> Result<&mut ParametersTooLarge, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ParametersTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_budget_exhausted(
self,
) -> Result<ParametersBudgetExhausted, TryUnwrapError<Self>>
pub fn try_unwrap_parameters_budget_exhausted( self, ) -> Result<ParametersBudgetExhausted, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ParametersBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_budget_exhausted_ref(
&self,
) -> Result<&ParametersBudgetExhausted, TryUnwrapError<&Self>>
pub fn try_unwrap_parameters_budget_exhausted_ref( &self, ) -> Result<&ParametersBudgetExhausted, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ParametersBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_budget_exhausted_mut(
&mut self,
) -> Result<&mut ParametersBudgetExhausted, TryUnwrapError<&mut Self>>
pub fn try_unwrap_parameters_budget_exhausted_mut( &mut self, ) -> Result<&mut ParametersBudgetExhausted, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ParametersBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_missing(
self,
) -> Result<ParametersMissing, TryUnwrapError<Self>>
pub fn try_unwrap_parameters_missing( self, ) -> Result<ParametersMissing, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ParametersMissing variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_missing_ref(
&self,
) -> Result<&ParametersMissing, TryUnwrapError<&Self>>
pub fn try_unwrap_parameters_missing_ref( &self, ) -> Result<&ParametersMissing, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ParametersMissing variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_missing_mut(
&mut self,
) -> Result<&mut ParametersMissing, TryUnwrapError<&mut Self>>
pub fn try_unwrap_parameters_missing_mut( &mut self, ) -> Result<&mut ParametersMissing, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ParametersMissing variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_alloc(
self,
) -> Result<ParametersAlloc, TryUnwrapError<Self>>
pub fn try_unwrap_parameters_alloc( self, ) -> Result<ParametersAlloc, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ParametersAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_alloc_ref(
&self,
) -> Result<&ParametersAlloc, TryUnwrapError<&Self>>
pub fn try_unwrap_parameters_alloc_ref( &self, ) -> Result<&ParametersAlloc, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ParametersAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_alloc_mut(
&mut self,
) -> Result<&mut ParametersAlloc, TryUnwrapError<&mut Self>>
pub fn try_unwrap_parameters_alloc_mut( &mut self, ) -> Result<&mut ParametersAlloc, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ParametersAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_copy(
self,
) -> Result<ParametersCopy, TryUnwrapError<Self>>
pub fn try_unwrap_parameters_copy( self, ) -> Result<ParametersCopy, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ParametersCopy variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_copy_ref(
&self,
) -> Result<&ParametersCopy, TryUnwrapError<&Self>>
pub fn try_unwrap_parameters_copy_ref( &self, ) -> Result<&ParametersCopy, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ParametersCopy variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_copy_mut(
&mut self,
) -> Result<&mut ParametersCopy, TryUnwrapError<&mut Self>>
pub fn try_unwrap_parameters_copy_mut( &mut self, ) -> Result<&mut ParametersCopy, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ParametersCopy variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_opaque(
self,
) -> Result<ParametersOpaque, TryUnwrapError<Self>>
pub fn try_unwrap_parameters_opaque( self, ) -> Result<ParametersOpaque, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ParametersOpaque variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_opaque_ref(
&self,
) -> Result<&ParametersOpaque, TryUnwrapError<&Self>>
pub fn try_unwrap_parameters_opaque_ref( &self, ) -> Result<&ParametersOpaque, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ParametersOpaque variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_opaque_mut(
&mut self,
) -> Result<&mut ParametersOpaque, TryUnwrapError<&mut Self>>
pub fn try_unwrap_parameters_opaque_mut( &mut self, ) -> Result<&mut ParametersOpaque, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ParametersOpaque variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_channel_map(
self,
) -> Result<ParametersChannelMap, TryUnwrapError<Self>>
pub fn try_unwrap_parameters_channel_map( self, ) -> Result<ParametersChannelMap, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ParametersChannelMap variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_channel_map_ref(
&self,
) -> Result<&ParametersChannelMap, TryUnwrapError<&Self>>
pub fn try_unwrap_parameters_channel_map_ref( &self, ) -> Result<&ParametersChannelMap, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ParametersChannelMap variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_channel_map_mut(
&mut self,
) -> Result<&mut ParametersChannelMap, TryUnwrapError<&mut Self>>
pub fn try_unwrap_parameters_channel_map_mut( &mut self, ) -> Result<&mut ParametersChannelMap, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ParametersChannelMap variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_layout_shape(
self,
) -> Result<ParametersLayoutShape, TryUnwrapError<Self>>
pub fn try_unwrap_parameters_layout_shape( self, ) -> Result<ParametersLayoutShape, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ParametersLayoutShape variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_layout_shape_ref(
&self,
) -> Result<&ParametersLayoutShape, TryUnwrapError<&Self>>
pub fn try_unwrap_parameters_layout_shape_ref( &self, ) -> Result<&ParametersLayoutShape, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ParametersLayoutShape variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_parameters_layout_shape_mut(
&mut self,
) -> Result<&mut ParametersLayoutShape, TryUnwrapError<&mut Self>>
pub fn try_unwrap_parameters_layout_shape_mut( &mut self, ) -> Result<&mut ParametersLayoutShape, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ParametersLayoutShape variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_timebase_invalid(
self,
) -> Result<TrackTimebaseInvalid, TryUnwrapError<Self>>
pub fn try_unwrap_track_timebase_invalid( self, ) -> Result<TrackTimebaseInvalid, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::TrackTimebaseInvalid variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_timebase_invalid_ref(
&self,
) -> Result<&TrackTimebaseInvalid, TryUnwrapError<&Self>>
pub fn try_unwrap_track_timebase_invalid_ref( &self, ) -> Result<&TrackTimebaseInvalid, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::TrackTimebaseInvalid variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_timebase_invalid_mut(
&mut self,
) -> Result<&mut TrackTimebaseInvalid, TryUnwrapError<&mut Self>>
pub fn try_unwrap_track_timebase_invalid_mut( &mut self, ) -> Result<&mut TrackTimebaseInvalid, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::TrackTimebaseInvalid variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_timebase_invalid(
self,
) -> Result<ChapterTimebaseInvalid, TryUnwrapError<Self>>
pub fn try_unwrap_chapter_timebase_invalid( self, ) -> Result<ChapterTimebaseInvalid, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ChapterTimebaseInvalid variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_timebase_invalid_ref(
&self,
) -> Result<&ChapterTimebaseInvalid, TryUnwrapError<&Self>>
pub fn try_unwrap_chapter_timebase_invalid_ref( &self, ) -> Result<&ChapterTimebaseInvalid, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ChapterTimebaseInvalid variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_timebase_invalid_mut(
&mut self,
) -> Result<&mut ChapterTimebaseInvalid, TryUnwrapError<&mut Self>>
pub fn try_unwrap_chapter_timebase_invalid_mut( &mut self, ) -> Result<&mut ChapterTimebaseInvalid, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ChapterTimebaseInvalid variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_too_many_chapters(
self,
) -> Result<TooManyChapters, TryUnwrapError<Self>>
pub fn try_unwrap_too_many_chapters( self, ) -> Result<TooManyChapters, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::TooManyChapters variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_too_many_chapters_ref(
&self,
) -> Result<&TooManyChapters, TryUnwrapError<&Self>>
pub fn try_unwrap_too_many_chapters_ref( &self, ) -> Result<&TooManyChapters, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::TooManyChapters variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_too_many_chapters_mut(
&mut self,
) -> Result<&mut TooManyChapters, TryUnwrapError<&mut Self>>
pub fn try_unwrap_too_many_chapters_mut( &mut self, ) -> Result<&mut TooManyChapters, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::TooManyChapters variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_title_budget_exhausted(
self,
) -> Result<ChapterTitleBudgetExhausted, TryUnwrapError<Self>>
pub fn try_unwrap_chapter_title_budget_exhausted( self, ) -> Result<ChapterTitleBudgetExhausted, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ChapterTitleBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_title_budget_exhausted_ref(
&self,
) -> Result<&ChapterTitleBudgetExhausted, TryUnwrapError<&Self>>
pub fn try_unwrap_chapter_title_budget_exhausted_ref( &self, ) -> Result<&ChapterTitleBudgetExhausted, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ChapterTitleBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_title_budget_exhausted_mut(
&mut self,
) -> Result<&mut ChapterTitleBudgetExhausted, TryUnwrapError<&mut Self>>
pub fn try_unwrap_chapter_title_budget_exhausted_mut( &mut self, ) -> Result<&mut ChapterTitleBudgetExhausted, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ChapterTitleBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_title_too_long(
self,
) -> Result<ChapterTitleTooLong, TryUnwrapError<Self>>
pub fn try_unwrap_chapter_title_too_long( self, ) -> Result<ChapterTitleTooLong, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ChapterTitleTooLong variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_title_too_long_ref(
&self,
) -> Result<&ChapterTitleTooLong, TryUnwrapError<&Self>>
pub fn try_unwrap_chapter_title_too_long_ref( &self, ) -> Result<&ChapterTitleTooLong, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ChapterTitleTooLong variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_title_too_long_mut(
&mut self,
) -> Result<&mut ChapterTitleTooLong, TryUnwrapError<&mut Self>>
pub fn try_unwrap_chapter_title_too_long_mut( &mut self, ) -> Result<&mut ChapterTitleTooLong, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ChapterTitleTooLong variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_title_alloc(
self,
) -> Result<ChapterTitleAlloc, TryUnwrapError<Self>>
pub fn try_unwrap_chapter_title_alloc( self, ) -> Result<ChapterTitleAlloc, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ChapterTitleAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_title_alloc_ref(
&self,
) -> Result<&ChapterTitleAlloc, TryUnwrapError<&Self>>
pub fn try_unwrap_chapter_title_alloc_ref( &self, ) -> Result<&ChapterTitleAlloc, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ChapterTitleAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_title_alloc_mut(
&mut self,
) -> Result<&mut ChapterTitleAlloc, TryUnwrapError<&mut Self>>
pub fn try_unwrap_chapter_title_alloc_mut( &mut self, ) -> Result<&mut ChapterTitleAlloc, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ChapterTitleAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_metadata_too_long(
self,
) -> Result<TrackMetadataTooLong, TryUnwrapError<Self>>
pub fn try_unwrap_track_metadata_too_long( self, ) -> Result<TrackMetadataTooLong, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::TrackMetadataTooLong variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_metadata_too_long_ref(
&self,
) -> Result<&TrackMetadataTooLong, TryUnwrapError<&Self>>
pub fn try_unwrap_track_metadata_too_long_ref( &self, ) -> Result<&TrackMetadataTooLong, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::TrackMetadataTooLong variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_metadata_too_long_mut(
&mut self,
) -> Result<&mut TrackMetadataTooLong, TryUnwrapError<&mut Self>>
pub fn try_unwrap_track_metadata_too_long_mut( &mut self, ) -> Result<&mut TrackMetadataTooLong, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::TrackMetadataTooLong variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_metadata_budget_exhausted(
self,
) -> Result<TrackMetadataBudgetExhausted, TryUnwrapError<Self>>
pub fn try_unwrap_track_metadata_budget_exhausted( self, ) -> Result<TrackMetadataBudgetExhausted, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::TrackMetadataBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_metadata_budget_exhausted_ref(
&self,
) -> Result<&TrackMetadataBudgetExhausted, TryUnwrapError<&Self>>
pub fn try_unwrap_track_metadata_budget_exhausted_ref( &self, ) -> Result<&TrackMetadataBudgetExhausted, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::TrackMetadataBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_metadata_budget_exhausted_mut(
&mut self,
) -> Result<&mut TrackMetadataBudgetExhausted, TryUnwrapError<&mut Self>>
pub fn try_unwrap_track_metadata_budget_exhausted_mut( &mut self, ) -> Result<&mut TrackMetadataBudgetExhausted, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::TrackMetadataBudgetExhausted variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_metadata_alloc(
self,
) -> Result<TrackMetadataAlloc, TryUnwrapError<Self>>
pub fn try_unwrap_track_metadata_alloc( self, ) -> Result<TrackMetadataAlloc, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::TrackMetadataAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_metadata_alloc_ref(
&self,
) -> Result<&TrackMetadataAlloc, TryUnwrapError<&Self>>
pub fn try_unwrap_track_metadata_alloc_ref( &self, ) -> Result<&TrackMetadataAlloc, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::TrackMetadataAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_metadata_alloc_mut(
&mut self,
) -> Result<&mut TrackMetadataAlloc, TryUnwrapError<&mut Self>>
pub fn try_unwrap_track_metadata_alloc_mut( &mut self, ) -> Result<&mut TrackMetadataAlloc, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::TrackMetadataAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_alloc(
self,
) -> Result<ChapterAlloc, TryUnwrapError<Self>>
pub fn try_unwrap_chapter_alloc( self, ) -> Result<ChapterAlloc, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ChapterAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_alloc_ref(
&self,
) -> Result<&ChapterAlloc, TryUnwrapError<&Self>>
pub fn try_unwrap_chapter_alloc_ref( &self, ) -> Result<&ChapterAlloc, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ChapterAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_chapter_alloc_mut(
&mut self,
) -> Result<&mut ChapterAlloc, TryUnwrapError<&mut Self>>
pub fn try_unwrap_chapter_alloc_mut( &mut self, ) -> Result<&mut ChapterAlloc, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ChapterAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_table_alloc(
self,
) -> Result<TrackTableAlloc, TryUnwrapError<Self>>
pub fn try_unwrap_track_table_alloc( self, ) -> Result<TrackTableAlloc, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::TrackTableAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_table_alloc_ref(
&self,
) -> Result<&TrackTableAlloc, TryUnwrapError<&Self>>
pub fn try_unwrap_track_table_alloc_ref( &self, ) -> Result<&TrackTableAlloc, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::TrackTableAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_track_table_alloc_mut(
&mut self,
) -> Result<&mut TrackTableAlloc, TryUnwrapError<&mut Self>>
pub fn try_unwrap_track_table_alloc_mut( &mut self, ) -> Result<&mut TrackTableAlloc, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::TrackTableAlloc variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_packet_buffer(
self,
) -> Result<PacketBuffer, TryUnwrapError<Self>>
pub fn try_unwrap_packet_buffer( self, ) -> Result<PacketBuffer, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::PacketBuffer variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_packet_buffer_ref(
&self,
) -> Result<&PacketBuffer, TryUnwrapError<&Self>>
pub fn try_unwrap_packet_buffer_ref( &self, ) -> Result<&PacketBuffer, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::PacketBuffer variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_packet_buffer_mut(
&mut self,
) -> Result<&mut PacketBuffer, TryUnwrapError<&mut Self>>
pub fn try_unwrap_packet_buffer_mut( &mut self, ) -> Result<&mut PacketBuffer, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::PacketBuffer variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_reader_panic(
self,
) -> Result<ReaderPanic, TryUnwrapError<Self>>
pub fn try_unwrap_reader_panic( self, ) -> Result<ReaderPanic, TryUnwrapError<Self>>
Attempts to unwrap this value to the DemuxError::ReaderPanic variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_reader_panic_ref(
&self,
) -> Result<&ReaderPanic, TryUnwrapError<&Self>>
pub fn try_unwrap_reader_panic_ref( &self, ) -> Result<&ReaderPanic, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the DemuxError::ReaderPanic variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_reader_panic_mut(
&mut self,
) -> Result<&mut ReaderPanic, TryUnwrapError<&mut Self>>
pub fn try_unwrap_reader_panic_mut( &mut self, ) -> Result<&mut ReaderPanic, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the DemuxError::ReaderPanic variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Trait Implementations§
Source§impl Clone for DemuxError
impl Clone for DemuxError
Source§fn clone(&self) -> DemuxError
fn clone(&self) -> DemuxError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DemuxError
impl Debug for DemuxError
Source§impl Display for DemuxError
impl Display for DemuxError
Source§impl Error for DemuxError
impl Error for DemuxError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()