pub struct DataFrame {
pub header: DataFrameHeader,
pub payload_header: PayloadHeader,
pub sync_message: Vec<u8>,
}Available on crate feature
transport only.Expand description
A complete data frame ready for encryption/transmission.
Fields§
§header: DataFrameHeaderThe unencrypted header (used as AAD).
payload_header: PayloadHeaderThe payload header (will be encrypted).
sync_message: Vec<u8>The sync message (will be encrypted).
Implementations§
Source§impl DataFrame
impl DataFrame
Sourcepub fn new(
session_id: SessionId,
nonce_counter: u64,
timestamp: u32,
timestamp_echo: u32,
sync_message: Vec<u8>,
) -> Self
pub fn new( session_id: SessionId, nonce_counter: u64, timestamp: u32, timestamp_echo: u32, sync_message: Vec<u8>, ) -> Self
Create a new data frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataFrame
impl RefUnwindSafe for DataFrame
impl Send for DataFrame
impl Sync for DataFrame
impl Unpin for DataFrame
impl UnwindSafe for DataFrame
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