Skip to main content

TableId

Enum TableId 

Source
#[repr(u8)]
pub enum TableId {
Show 29 variants Pat = 0, Cat = 1, Pmt = 2, TransportStreamDescription = 3, NetworkInformationActual = 64, NetworkInformationOther = 65, ServiceDescriptionActual = 66, ServiceDescriptionOther = 70, BouquetAssociation = 74, UpdateNotification = 75, IpMacNotification = 76, SatelliteAccess = 77, EventInformationPfActual = 78, EventInformationPfOther = 79, TimeAndDate = 112, RunningStatus = 113, Stuffing = 114, TimeOffset = 115, ApplicationInformation = 116, Container = 117, RelatedContent = 118, ContentIdentifier = 119, MpeFec = 120, ResolutionNotification = 121, MpeIfec = 122, ProtectionMessage = 123, DownloadableFontInfo = 124, DiscontinuityInformation = 126, SelectionInformation = 127,
}
Expand description

Typed table_id enumeration.

Tables that occupy a range of values (EIT schedule 0x50..=0x5F and 0x60..=0x6F) are not listed as enum variants; see Self::eit_schedule_actual_segment and Self::eit_schedule_other_segment instead.

Variants§

§

Pat = 0

§

Cat = 1

§

Pmt = 2

§

TransportStreamDescription = 3

§

NetworkInformationActual = 64

§

NetworkInformationOther = 65

§

ServiceDescriptionActual = 66

§

ServiceDescriptionOther = 70

§

BouquetAssociation = 74

§

UpdateNotification = 75

§

IpMacNotification = 76

§

SatelliteAccess = 77

§

EventInformationPfActual = 78

§

EventInformationPfOther = 79

§

TimeAndDate = 112

§

RunningStatus = 113

§

Stuffing = 114

§

TimeOffset = 115

§

ApplicationInformation = 116

§

Container = 117

§

RelatedContent = 118

§

ContentIdentifier = 119

§

MpeFec = 120

§

ResolutionNotification = 121

§

MpeIfec = 122

§

ProtectionMessage = 123

§

DownloadableFontInfo = 124

§

DiscontinuityInformation = 126

§

SelectionInformation = 127

Implementations§

Source§

impl TableId

Source

pub const fn eit_schedule_actual_segment(v: u8) -> Option<u8>

If v is an EIT-schedule-actual table_id (0x50..=0x5F), return its segment index 0..=15. Otherwise None.

Source

pub const fn eit_schedule_other_segment(v: u8) -> Option<u8>

If v is an EIT-schedule-other table_id (0x60..=0x6F), return its segment index 0..=15. Otherwise None.

Trait Implementations§

Source§

impl Clone for TableId

Source§

fn clone(&self) -> TableId

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for TableId

Source§

impl Debug for TableId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for TableId

Source§

impl Hash for TableId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TableId

Source§

fn eq(&self, other: &TableId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TableId

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TableId

Source§

impl TryFrom<u8> for TableId

Source§

type Error = TryFromPrimitiveError<TableId>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for TableId

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DescriptorObject for T
where T: Debug + Any + Send + Sync + Serialize,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Borrow as &dyn Any so the caller can downcast to the concrete type.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.