Enum mpeg2ts_reader::pes::PesError
source · pub enum PesError {
FieldNotPresent,
PtsDtsFlagsInvalid,
NotEnoughData {
requested: usize,
available: usize,
},
MarkerBitNotSet,
}
Expand description
Errors which may be encountered while processing PES data.
Variants§
FieldNotPresent
The value of an optional field was requested, but the field is not actually present in the given PES data
PtsDtsFlagsInvalid
The pts_dts_flags
field of the PES packet signals that DTS is present and PTS is not,
which not a valid combination
NotEnoughData
Fields
There is not enough data in the buffer to hold the expected syntax element
MarkerBitNotSet
Marker bits are expected to always have the value 1
– the value 0
presumably implies
a parsing error.
Trait Implementations§
source§impl PartialEq for PesError
impl PartialEq for PesError
impl Eq for PesError
impl StructuralPartialEq for PesError
Auto Trait Implementations§
impl RefUnwindSafe for PesError
impl Send for PesError
impl Sync for PesError
impl Unpin for PesError
impl UnwindSafe for PesError
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