pub struct PacketInfo {
pub version: u8,
pub mod_id: u8,
pub session_id: u16,
pub frag_index: u8,
pub frag_count: u8,
pub payload: Vec<u8>,
}Fields§
§version: u8Packet format version from the serialized header.
mod_id: u8On-wire modulation identifier from the packet header.
session_id: u16Session identifier used to group fragments from the same transmission.
frag_index: u8Zero-based fragment index within the session payload.
frag_count: u8Total number of fragments in the session payload.
payload: Vec<u8>Application payload bytes carried by this fragment.
Trait Implementations§
Source§impl Clone for PacketInfo
impl Clone for PacketInfo
Source§fn clone(&self) -> PacketInfo
fn clone(&self) -> PacketInfo
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PacketInfo
impl RefUnwindSafe for PacketInfo
impl Send for PacketInfo
impl Sync for PacketInfo
impl Unpin for PacketInfo
impl UnwindSafe for PacketInfo
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