pub struct ProtectionMessage<'a> {
pub reserved: u8,
pub component_tags: &'a [u8],
}Expand description
protection_message body (Table 40, §9.3.3): the list of protected
component_tags. component_count is a 4-bit field, so at most 15 tags.
Fields§
§reserved: u8reserved(4) — preserved verbatim for byte-exact round-trip.
The component_tag list (one u8 per protected component;
component_count is its length).
Trait Implementations§
Source§impl<'a> Clone for ProtectionMessage<'a>
impl<'a> Clone for ProtectionMessage<'a>
Source§fn clone(&self) -> ProtectionMessage<'a>
fn clone(&self) -> ProtectionMessage<'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 ProtectionMessage<'a>
impl<'a> Debug for ProtectionMessage<'a>
impl<'a> Eq for ProtectionMessage<'a>
Source§impl<'a> ExtensionBodyDef<'a> for ProtectionMessage<'a>
impl<'a> ExtensionBodyDef<'a> for ProtectionMessage<'a>
Source§impl<'a> Parse<'a> for ProtectionMessage<'a>
impl<'a> Parse<'a> for ProtectionMessage<'a>
Source§impl<'a> PartialEq for ProtectionMessage<'a>
impl<'a> PartialEq for ProtectionMessage<'a>
Source§fn eq(&self, other: &ProtectionMessage<'a>) -> bool
fn eq(&self, other: &ProtectionMessage<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for ProtectionMessage<'a>
impl<'a> Serialize for ProtectionMessage<'a>
Source§impl Serialize for ProtectionMessage<'_>
impl Serialize for ProtectionMessage<'_>
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.impl<'a> StructuralPartialEq for ProtectionMessage<'a>
Source§impl<'a> Yokeable<'a> for ProtectionMessage<'static>
impl<'a> Yokeable<'a> for ProtectionMessage<'static>
Source§type Output = ProtectionMessage<'a>
type Output = ProtectionMessage<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Freeze for ProtectionMessage<'a>
impl<'a> RefUnwindSafe for ProtectionMessage<'a>
impl<'a> Send for ProtectionMessage<'a>
impl<'a> Sync for ProtectionMessage<'a>
impl<'a> Unpin for ProtectionMessage<'a>
impl<'a> UnsafeUnpin for ProtectionMessage<'a>
impl<'a> UnwindSafe for ProtectionMessage<'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