Struct mpeg2ts_reader::pes::PesHeader
source · pub struct PesHeader<'buf> { /* private fields */ }Expand description
Header at the start of every PES packet.
The header identifies,
- The stream identifier, returned by
stream_id() - The the size of the packet, returned by
pes_packet_length(), which may well be larger than the size of the payload buffer obtained from the header (the payload is likely split across multiple Transport Stream packets)
In addition, the header may provide access to either
- an additional set of header data followed by a payload, when
contents()returnsPesContents::Parsed - just a payload on its own, when
contents()returnsPesContents::Payload
Implementations
Auto Trait Implementations
impl<'buf> RefUnwindSafe for PesHeader<'buf>
impl<'buf> Send for PesHeader<'buf>
impl<'buf> Sync for PesHeader<'buf>
impl<'buf> Unpin for PesHeader<'buf>
impl<'buf> UnwindSafe for PesHeader<'buf>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more