pub struct WirePacketHeader {
pub ifac_flag: IfacFlag,
pub context_flag: ContextFlag,
pub propagation: PropagationType,
pub destination_type: DestinationType,
pub packet_type: PacketType,
pub hops: u8,
pub transport_id: Option<TransportId>,
pub address: WireAddress,
pub context: WireContext,
}Expand description
Note that transport_id.is_some() is the Type-1/Type-2 distinction, so the two can never disagree.
[flags:1][hops:1] ( [transport_id:16] )? [destination:16][context:1] [payload…]Fields§
§ifac_flag: IfacFlag§context_flag: ContextFlag§propagation: PropagationType§destination_type: DestinationType§packet_type: PacketType§hops: u8§transport_id: Option<TransportId>§address: WireAddress§context: WireContextImplementations§
Trait Implementations§
Source§impl Clone for WirePacketHeader
impl Clone for WirePacketHeader
Source§fn clone(&self) -> WirePacketHeader
fn clone(&self) -> WirePacketHeader
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 moreimpl Copy for WirePacketHeader
Source§impl Debug for WirePacketHeader
impl Debug for WirePacketHeader
impl Eq for WirePacketHeader
Source§impl PartialEq for WirePacketHeader
impl PartialEq for WirePacketHeader
impl StructuralPartialEq for WirePacketHeader
Auto Trait Implementations§
impl Freeze for WirePacketHeader
impl RefUnwindSafe for WirePacketHeader
impl Send for WirePacketHeader
impl Sync for WirePacketHeader
impl Unpin for WirePacketHeader
impl UnsafeUnpin for WirePacketHeader
impl UnwindSafe for WirePacketHeader
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