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
There is not enough data in the buffer to hold the expected syntax element
Fields
MarkerBitNotSet
Marker bits are expected to always have the value 1 – the value 0 presumably implies
a parsing error.
Trait Implementations§
impl Eq for PesError
impl StructuralPartialEq for PesError
Auto Trait Implementations§
impl Freeze for PesError
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