Struct mpeg2ts_reader::psi::SectionCommonHeader [−][src]
pub struct SectionCommonHeader {
pub table_id: u8,
pub section_syntax_indicator: bool,
pub private_indicator: bool,
pub section_length: usize,
}Header common to all PSI sections, whether they then use ‘section syntax’ or ‘compact syntax’.
Fields
table_id: u8The type of table of which this is a section
section_syntax_indicator: booltrue for ’section syntax, false` for ‘compact syntax’.
private_indicator: boolindicates that the data in the table is for private use not defined in ISO/IEC 13818-1
(section types implemented in this crate are to be used with data that has e in
this field, but other crates might be written to support private table sections).
section_length: usizethe number of bytes in the section data immediately following this field (which may be more bytes than will fit into a single TS packet).
Implementations
impl SectionCommonHeader[src]
pub const SIZE: usize[src]
The fixed size of the CommonSectionHeader data in the Transport Stream; 3 bytes.
pub fn new(buf: &[u8]) -> SectionCommonHeader[src]
Parses the data in the given slice into a new SectionCommonHeader.
Panics if the slice is not exactly 3 bytes long.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SectionCommonHeader
impl Send for SectionCommonHeader
impl Sync for SectionCommonHeader
impl Unpin for SectionCommonHeader
impl UnwindSafe for SectionCommonHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,