pub struct Encapsulation {
pub sequence: u8,
pub extensions: Vec<Extension>,
pub encrypted_extensions: bool,
/* private fields */
}Expand description
The unencrypted parts of a Message Encapsulation.
Fields§
§sequence: u8The sender’s sequence number.
extensions: Vec<Extension>Unencrypted extensions.
encrypted_extensions: boolWhether encrypted extensions precede the command in the plaintext.
Implementations§
Source§impl Encapsulation
impl Encapsulation
Sourcepub fn parse(frame: &[u8]) -> Result<Self, Error>
pub fn parse(frame: &[u8]) -> Result<Self, Error>
Parses a Message Encapsulation command (starting at 0x9F 0x03).
Sourcepub fn sender_ei(&self) -> Option<[u8; 16]>
pub fn sender_ei(&self) -> Option<[u8; 16]>
The SPAN extension’s sender entropy input, if present.
Sourcepub fn multicast_group(&self) -> Option<u8>
pub fn multicast_group(&self) -> Option<u8>
The MGRP extension’s group, if present.
Trait Implementations§
Source§impl Clone for Encapsulation
impl Clone for Encapsulation
Source§impl Debug for Encapsulation
impl Debug for Encapsulation
impl Eq for Encapsulation
Source§impl PartialEq for Encapsulation
impl PartialEq for Encapsulation
impl StructuralPartialEq for Encapsulation
Auto Trait Implementations§
impl Freeze for Encapsulation
impl RefUnwindSafe for Encapsulation
impl Send for Encapsulation
impl Sync for Encapsulation
impl Unpin for Encapsulation
impl UnsafeUnpin for Encapsulation
impl UnwindSafe for Encapsulation
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