Skip to main content

CpSigMessageType

Enum CpSigMessageType 

Source
#[non_exhaustive]
pub enum CpSigMessageType {
Show 23 variants ChannelSetup, ChannelStatus, ChannelTest, ChannelClose, ChannelError, StreamSetup, StreamStatus, StreamTest, StreamClose, StreamCloseRequest, StreamCloseResponse, StreamError, StreamServiceChange, StreamTriggerEnableRequest, StreamTriggerEnableResponse, Trigger, TableRequest, TableResponse, DescriptorInsertRequest, DescriptorInsertResponse, PidProvisionRequest, PidProvisionResponse, Reserved(u16),
}
Expand description

C(P)SIG⇔(P)SIG message_type values (TS 103 197 Table 3, §4.4.1 / §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.
§

ChannelSetup

0x0301 channel_setup.

§

ChannelStatus

0x0302 channel_status.

§

ChannelTest

0x0303 channel_test.

§

ChannelClose

0x0304 channel_close.

§

ChannelError

0x0305 channel_error.

§

StreamSetup

0x0311 stream_setup.

§

StreamStatus

0x0312 stream_status.

§

StreamTest

0x0313 stream_test.

§

StreamClose

0x0314 stream_close.

§

StreamCloseRequest

0x0315 stream_close_request.

§

StreamCloseResponse

0x0316 stream_close_response.

§

StreamError

0x0317 stream_error.

§

StreamServiceChange

0x0318 stream_service_change.

§

StreamTriggerEnableRequest

0x0319 stream_trigger_enable_request.

§

StreamTriggerEnableResponse

0x031A stream_trigger_enable_response.

§

Trigger

0x031B trigger.

§

TableRequest

0x031C table_request.

§

TableResponse

0x031D table_response.

§

DescriptorInsertRequest

0x031E descriptor_insert_request.

§

DescriptorInsertResponse

0x031F descriptor_insert_response.

§

PidProvisionRequest

0x0320 PID_provision_request.

§

PidProvisionResponse

0x0321 PID_provision_response.

§

Reserved(u16)

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

Implementations§

Source§

impl CpSigMessageType

Source

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

Decode a 16-bit message_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.

Trait Implementations§

Source§

impl Clone for CpSigMessageType

Source§

fn clone(&self) -> CpSigMessageType

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 CpSigMessageType

Source§

impl Debug for CpSigMessageType

Source§

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

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

impl Display for CpSigMessageType

Source§

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

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

impl Eq for CpSigMessageType

Source§

impl Hash for CpSigMessageType

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 CpSigMessageType

Source§

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

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 CpSigMessageType

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.