pub struct MeshDataFrame {
pub src_id: NodeId,
pub dst_id: NodeId,
pub session_id: u32,
pub ttl: u8,
pub flags: DataFlags,
pub payload: Bytes,
}Expand description
Carries an IP packet (or fragment) through the mesh.
Header: src_id(16) + dst_id(16) + session_id(4) + ttl(1) + flags(1) + payload_len(2) = 40 bytes
Fields§
§src_id: NodeIdOriginal source node for the payload.
dst_id: NodeIdFinal destination node for the payload.
session_id: u32Session identifier chosen by the sender.
ttl: u8Remaining hop budget.
flags: DataFlagsDelivery and fragmentation flags.
payload: BytesEncapsulated IP packet bytes or fragment payload.
Trait Implementations§
Source§impl Clone for MeshDataFrame
impl Clone for MeshDataFrame
Source§fn clone(&self) -> MeshDataFrame
fn clone(&self) -> MeshDataFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MeshDataFrame
impl Debug for MeshDataFrame
Source§impl FrameCodec for MeshDataFrame
impl FrameCodec for MeshDataFrame
Source§impl PartialEq for MeshDataFrame
impl PartialEq for MeshDataFrame
Source§fn eq(&self, other: &MeshDataFrame) -> bool
fn eq(&self, other: &MeshDataFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MeshDataFrame
impl StructuralPartialEq for MeshDataFrame
Auto Trait Implementations§
impl !Freeze for MeshDataFrame
impl RefUnwindSafe for MeshDataFrame
impl Send for MeshDataFrame
impl Sync for MeshDataFrame
impl Unpin for MeshDataFrame
impl UnsafeUnpin for MeshDataFrame
impl UnwindSafe for MeshDataFrame
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