Skip to main content

EcmgScsParameterType

Enum EcmgScsParameterType 

Source
#[non_exhaustive]
pub enum EcmgScsParameterType {
Show 28 variants SuperCasId, SectionTspktFlag, DelayStart, DelayStop, TransitionDelayStart, TransitionDelayStop, EcmRepPeriod, MaxStreams, MinCpDuration, LeadCw, CwPerMsg, MaxCompTime, AccessCriteria, EcmChannelId, EcmStreamId, NominalCpDuration, AccessCriteriaTransferMode, CpNumber, CpDuration, CpCwCombination, EcmDatagram, AcDelayStart, AcDelayStop, CwEncryption, EcmId, ErrorStatus, ErrorInformation, Reserved(u16),
}
Expand description

ECMG⇔SCS parameter_type values (TS 103 197 Table 5, §5.2 p. 31).

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.
§

SuperCasId

0x0001 Super_CAS_id (uimsbf, 4 bytes).

§

SectionTspktFlag

0x0002 section_TSpkt_flag (uimsbf, 1 byte).

§

DelayStart

0x0003 delay_start (tcimsbf/ms, 2 bytes).

§

DelayStop

0x0004 delay_stop (tcimsbf/ms, 2 bytes).

§

TransitionDelayStart

0x0005 transition_delay_start (tcimsbf/ms, 2 bytes).

§

TransitionDelayStop

0x0006 transition_delay_stop (tcimsbf/ms, 2 bytes).

§

EcmRepPeriod

0x0007 ECM_rep_period (uimsbf/ms, 2 bytes).

§

MaxStreams

0x0008 max_streams (uimsbf, 2 bytes).

§

MinCpDuration

0x0009 min_CP_duration (uimsbf/n×100ms, 2 bytes).

§

LeadCw

0x000A lead_CW (uimsbf, 1 byte).

§

CwPerMsg

0x000B CW_per_msg (uimsbf, 1 byte).

§

MaxCompTime

0x000C max_comp_time (uimsbf/ms, 2 bytes).

§

AccessCriteria

0x000D access_criteria (user defined, variable).

§

EcmChannelId

0x000E ECM_channel_id (uimsbf, 2 bytes).

§

EcmStreamId

0x000F ECM_stream_id (uimsbf, 2 bytes).

§

NominalCpDuration

0x0010 nominal_CP_duration (uimsbf/n×100ms, 2 bytes).

§

AccessCriteriaTransferMode

0x0011 access_criteria_transfer_mode (Boolean, 1 byte).

§

CpNumber

0x0012 CP_number (uimsbf, 2 bytes).

§

CpDuration

0x0013 CP_duration (uimsbf/n×100ms, 2 bytes).

§

CpCwCombination

0x0014 CP_CW_combination (CP uimsbf 2B + CW variable; compound, opaque CW).

§

EcmDatagram

0x0015 ECM_datagram (user defined, variable; opaque).

§

AcDelayStart

0x0016 AC_delay_start (tcimsbf/ms, 2 bytes).

§

AcDelayStop

0x0017 AC_delay_stop (tcimsbf/ms, 2 bytes).

§

CwEncryption

0x0018 CW_encryption (user defined, variable; opaque).

§

EcmId

0x0019 ECM_id (uimsbf, 2 bytes).

§

ErrorStatus

0x7000 error_status (2 bytes; see EcmgErrorStatus).

§

ErrorInformation

0x7001 error_information (user defined, variable).

§

Reserved(u16)

Any value not in the ECMG⇔SCS registry (DVB-reserved / user-defined).

Implementations§

Source§

impl EcmgScsParameterType

Source

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

Decode a 16-bit parameter_type for the ECMG⇔SCS 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 EcmgScsParameterType

Source§

fn clone(&self) -> EcmgScsParameterType

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 EcmgScsParameterType

Source§

impl Debug for EcmgScsParameterType

Source§

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

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

impl Display for EcmgScsParameterType

Source§

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

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

impl Eq for EcmgScsParameterType

Source§

impl Hash for EcmgScsParameterType

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 EcmgScsParameterType

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl Serialize for EcmgScsParameterType

Available on crate feature serde only.
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 EcmgScsParameterType

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.