#[non_exhaustive]pub enum MuxError {
InvalidTrackNumber,
DuplicateTrack(u64),
UnknownTrack(u64),
}Expand description
crate::mux::Muxer error.
Kept separate from [Error] (the low-level parse-error type) because
the two error sets are disjoint: nothing in mux ever returns [Error],
and nothing in vint/demux ever returns this type. Merging them would
force every exhaustive match on [Error] in the demux path to account
for mux-only variants it can never produce.
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.
InvalidTrackNumber
crate::mux::Muxer::add_track: TrackNumber 0 is reserved
(Matroska/WebM forbid it as a real track number).
DuplicateTrack(u64)
crate::mux::Muxer::add_track: a track with this TrackNumber was
already registered.
UnknownTrack(u64)
crate::mux::Muxer::push_frame: track_number was never registered
via add_track.
Trait Implementations§
impl Copy for MuxError
impl Eq for MuxError
Source§impl Error for MuxError
impl Error for MuxError
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()
impl StructuralPartialEq for MuxError
Auto Trait Implementations§
impl Freeze for MuxError
impl RefUnwindSafe for MuxError
impl Send for MuxError
impl Sync for MuxError
impl Unpin for MuxError
impl UnsafeUnpin for MuxError
impl UnwindSafe for MuxError
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