pub struct Parameter<'a> {
pub ptype: ParameterType,
pub value: &'a [u8],
}Expand description
One TLV parameter of a SimulcryptMessage (Table 1b): a typed
parameter_type plus a borrowed, opaque parameter_value.
The value is never interpreted — CWs (CP_CW_combination/CW_encryption),
ECMs (ECM_datagram) and EMM/private data (datagram) are carried as raw
bytes. parameter_length is recomputed from value.len() on serialize.
Fields§
§ptype: ParameterTypeThe interface-tagged parameter_type.
value: &'a [u8]The opaque parameter_value bytes (length = parameter_length).
Implementations§
Trait Implementations§
impl<'a> Copy for Parameter<'a>
impl<'a> Eq for Parameter<'a>
Source§impl<'a> PartialEq for Parameter<'a>
impl<'a> PartialEq for Parameter<'a>
impl<'a> StructuralPartialEq for Parameter<'a>
Auto Trait Implementations§
impl<'a> Freeze for Parameter<'a>
impl<'a> RefUnwindSafe for Parameter<'a>
impl<'a> Send for Parameter<'a>
impl<'a> Sync for Parameter<'a>
impl<'a> Unpin for Parameter<'a>
impl<'a> UnsafeUnpin for Parameter<'a>
impl<'a> UnwindSafe for Parameter<'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