Skip to main content

CpSigParameterType

Enum CpSigParameterType 

Source
#[non_exhaustive]
pub enum CpSigParameterType {
Show 47 variants AccessCriteria, BouquetId, CaDescriptorInsertionMode, CustomCaSystemId, CustomChannelId, CustomStreamId, Descriptor, DescriptorInsertStatus, Duration, EcmRelatedData, EsId, EventId, EventRelatedData, FlowId, FlowPid, FlowPidChangeRelatedData, FlowSuperCasId, FlowType, InsertionDelay, InsertionDelayType, LastSectionIndicator, LocationId, MaxCompTime, MaxStreams, MpegSection, NetworkId, OriginalNetworkId, PrivateData, PrivateDataSpecifier, PSigType, SegmentNumber, ServiceId, ServiceParameters, StartTime, StreamChangeTimestamp, StreamChangeType, TableId, TransactionId, TransportStreamId, TriggerId, TriggerList, TriggerType, PdRelatedData, FlowStreamType, ErrorStatus, ErrorInformation, Reserved(u16),
}
Expand description

C(P)SIG⇔(P)SIG parameter_type values (TS 103 197 Table 36, §8).

Reserved(u16) is the catch-all for any value outside the registry (DVB-reserved or user-defined); it preserves the raw 16-bit value so Display/serialize stay lossless.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AccessCriteria

0x000D access_criteria (user defined, variable).

§

BouquetId

0x0100 bouquet_id (uimsbf, 2 bytes).

§

CaDescriptorInsertionMode

0x0101 CA_descriptor_insertion_mode (uimsbf, 1 byte).

§

CustomCaSystemId

0x0102 custom_CA_system_id (uimsbf, 4 bytes).

§

CustomChannelId

0x0103 custom_channel_id (uimsbf, 2 bytes).

§

CustomStreamId

0x0104 custom_stream_id (uimsbf, 2 bytes).

§

Descriptor

0x0105 descriptor (per MPEG/DVB, variable).

§

DescriptorInsertStatus

0x0106 descriptor_insert_status (uimsbf, 1 byte).

§

Duration

0x0107 duration (uimsbf, 3 bytes).

§

EcmRelatedData

0x0108 ECM_related_data (—, variable).

§

EsId

0x010B ES_id (uimsbf, 2 bytes).

§

EventId

0x010C event_id (uimsbf, 2 bytes).

§

EventRelatedData

0x010D event_related_data (—, variable).

§

FlowId

0x010E flow_id (uimsbf, 2 bytes).

§

FlowPid

0x010F flow_PID (uimsbf, 2 bytes).

§

FlowPidChangeRelatedData

0x0110 flow_PID_change_related_data (—, 9 bytes).

§

FlowSuperCasId

0x0111 flow_super_CAS_id (uimsbf, 4 bytes).

§

FlowType

0x0112 flow_type (uimsbf, 1 byte).

§

InsertionDelay

0x0113 insertion_delay (tcimsbf/ms, 2 bytes).

§

InsertionDelayType

0x0114 insertion_delay_type (uimsbf, 1 byte).

§

LastSectionIndicator

0x0115 last_section_indicator (boolean, 1 byte).

§

LocationId

0x0116 location_id (uimsbf, 1 byte).

§

MaxCompTime

0x0117 max_comp_time (uimsbf/s, 2 bytes).

§

MaxStreams

0x0118 max_streams (uimsbf, 2 bytes).

§

MpegSection

0x0119 MPEG_section (per MPEG/DVB, variable).

§

NetworkId

0x011A network_id (uimsbf, 2 bytes).

§

OriginalNetworkId

0x011B original_network_id (uimsbf, 2 bytes).

§

PrivateData

0x011C private_data (user-defined, variable).

§

PrivateDataSpecifier

0x011D private_data_specifier (uimsbf, 4 bytes).

§

PSigType

0x011E (P)SIG_type (uimsbf, 1 byte).

§

SegmentNumber

0x011F segment_number (uimsbf, 1 byte).

§

ServiceId

0x0120 service_id (uimsbf, 2 bytes).

§

ServiceParameters

0x0121 service_parameters (—, 8 bytes).

§

StartTime

0x0122 start_time (bslbf, 5 bytes).

§

StreamChangeTimestamp

0x0123 stream_change_timestamp (bslbf, 5 bytes).

§

StreamChangeType

0x0124 stream_change_type (uimsbf, 1 byte).

§

TableId

0x0125 table_id (uimsbf, 1 byte).

§

TransactionId

0x0126 transaction_id (uimsbf, 2 bytes).

§

TransportStreamId

0x0127 transport_stream_id (uimsbf, 2 bytes).

§

TriggerId

0x0128 trigger_id (uimsbf, 2 bytes).

§

TriggerList

0x0129 trigger_list (bslbf, 4 bytes).

§

TriggerType

0x012A trigger_type (uimsbf, 4 bytes).

§

PdRelatedData

0x012B PD_related_data (—, variable).

§

FlowStreamType

0x012C flow_stream_type (uimsbf, 1 byte).

§

ErrorStatus

0x7000 error_status (2 bytes).

§

ErrorInformation

0x7001 error_information (user defined, variable).

§

Reserved(u16)

Any value not in the C(P)SIG⇔(P)SIG registry (DVB-reserved / user-defined).

Implementations§

Source§

impl CpSigParameterType

Source

pub const fn from_u16(v: u16) -> Self

Decode a 16-bit parameter_type for the C(P)SIG⇔(P)SIG interface.

Source

pub const fn to_u16(self) -> u16

The 16-bit wire value.

Source

pub fn name(&self) -> &'static str

Label per the project’s name() convention (the spec token).

Trait Implementations§

Source§

impl Clone for CpSigParameterType

Source§

fn clone(&self) -> CpSigParameterType

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 CpSigParameterType

Source§

impl Debug for CpSigParameterType

Source§

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

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

impl Display for CpSigParameterType

Source§

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

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

impl Eq for CpSigParameterType

Source§

impl Hash for CpSigParameterType

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 CpSigParameterType

Source§

fn eq(&self, other: &CpSigParameterType) -> 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 CpSigParameterType

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 CpSigParameterType

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> 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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.