pub struct PacketData {
pub dst: MacAddr,
pub flags: u8,
pub cmd: Command,
}Expand description
Represents the raw data fields to be packaged securely into an encrypted frame.
Fields§
§dst: MacAddrDestination MAC address.
flags: u8Protocol or routing control flags.
cmd: CommandCommand payload to be serialized and encrypted.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PacketData
impl RefUnwindSafe for PacketData
impl Send for PacketData
impl Sync for PacketData
impl Unpin for PacketData
impl UnsafeUnpin for PacketData
impl UnwindSafe for PacketData
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