pub struct CaDescriptor<'a> {
pub ca_system_id: u16,
pub ca_pid: u16,
pub private_data: &'a [u8],
}Expand description
Conditional Access Descriptor.
Carried in the program-level or ES-level descriptor loops of a PMT, or in the CAT. Identifies the CA system and the PID where Entitlement Control Messages (ECMs) or Entitlement Management Messages (EMMs) can be found.
Fields§
§ca_system_id: u16Conditional Access System ID.
Well-known CAIDs: 0x0100 Seca/Mediaguard 0x0500 Viaccess 0x0600 Irdeto 0x0B00 Conax 0x0D00 Cryptoworks 0x0E00 PowerVu 0x0F00 Tandberg/Clear 0x1700 Nagravision 2 0x1800 Nagravision 3 0x2600 BISS
ca_pid: u16PID carrying ECM/EMM data for this CA system.
Bits [12:0] of the 2-byte field; upper 3 bits are reserved.
private_data: &'a [u8]Optional private data following the standard CA descriptor fields.
Trait Implementations§
Source§impl<'a> Clone for CaDescriptor<'a>
impl<'a> Clone for CaDescriptor<'a>
Source§fn clone(&self) -> CaDescriptor<'a>
fn clone(&self) -> CaDescriptor<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CaDescriptor<'a>
impl<'a> Debug for CaDescriptor<'a>
Source§impl<'a> Descriptor<'a> for CaDescriptor<'a>
impl<'a> Descriptor<'a> for CaDescriptor<'a>
Source§impl<'a> DescriptorDef<'a> for CaDescriptor<'a>
impl<'a> DescriptorDef<'a> for CaDescriptor<'a>
impl<'a> Eq for CaDescriptor<'a>
Source§impl<'a> From<CaDescriptor<'a>> for AnyDescriptor<'a>
impl<'a> From<CaDescriptor<'a>> for AnyDescriptor<'a>
Source§fn from(d: CaDescriptor<'a>) -> Self
fn from(d: CaDescriptor<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for CaDescriptor<'a>
impl<'a> Parse<'a> for CaDescriptor<'a>
Source§impl<'a> PartialEq for CaDescriptor<'a>
impl<'a> PartialEq for CaDescriptor<'a>
Source§fn eq(&self, other: &CaDescriptor<'a>) -> bool
fn eq(&self, other: &CaDescriptor<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CaDescriptor<'_>
impl Serialize for CaDescriptor<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.Source§impl<'a> Serialize for CaDescriptor<'a>
impl<'a> Serialize for CaDescriptor<'a>
impl<'a> StructuralPartialEq for CaDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for CaDescriptor<'a>
impl<'a> RefUnwindSafe for CaDescriptor<'a>
impl<'a> Send for CaDescriptor<'a>
impl<'a> Sync for CaDescriptor<'a>
impl<'a> Unpin for CaDescriptor<'a>
impl<'a> UnsafeUnpin for CaDescriptor<'a>
impl<'a> UnwindSafe for CaDescriptor<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more