pub struct CryptoDataPayload {
pub buffer_start: u32,
pub packet_number: u32,
pub data: Vec<u8>,
}
Expand description
Unencrypted payload of CryptoData
packet.
Serialized form:
Length | Content |
---|---|
4 | Buffer start |
4 | Packet number |
variable | Data |
Fields§
§buffer_start: u32
Highest packet number handled + 1
packet_number: u32
Packet number used by the receiver to know if any packets have been lost
data: Vec<u8>
Data of CryptoData
packet
Trait Implementations§
Source§impl Clone for CryptoDataPayload
impl Clone for CryptoDataPayload
Source§fn clone(&self) -> CryptoDataPayload
fn clone(&self) -> CryptoDataPayload
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CryptoDataPayload
impl Debug for CryptoDataPayload
Source§impl FromBytes for CryptoDataPayload
impl FromBytes for CryptoDataPayload
Source§fn from_bytes(i: &[u8]) -> IResult<&[u8], CryptoDataPayload, (&[u8], ErrorKind)>
fn from_bytes(i: &[u8]) -> IResult<&[u8], CryptoDataPayload, (&[u8], ErrorKind)>
Deserialize struct using
nom
from raw bytesSource§impl PartialEq for CryptoDataPayload
impl PartialEq for CryptoDataPayload
Source§impl ToBytes for CryptoDataPayload
impl ToBytes for CryptoDataPayload
impl Eq for CryptoDataPayload
impl StructuralPartialEq for CryptoDataPayload
Auto Trait Implementations§
impl Freeze for CryptoDataPayload
impl RefUnwindSafe for CryptoDataPayload
impl Send for CryptoDataPayload
impl Sync for CryptoDataPayload
impl Unpin for CryptoDataPayload
impl UnwindSafe for CryptoDataPayload
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