pub struct PacketContext {
pub context_type: u32,
pub flags: u8,
pub hops: u8,
pub destination_hash: [u8; 16],
pub context: u8,
pub packet_hash: [u8; 32],
pub interface_id: u64,
pub data_offset: u32,
pub data_len: u32,
/* private fields */
}Expand description
Packet context layout — matches host ArenaPacket byte-for-byte.
Fields§
§context_type: u32§flags: u8§hops: u8§destination_hash: [u8; 16]§context: u8§packet_hash: [u8; 32]§interface_id: u64§data_offset: u32§data_len: u32Auto Trait Implementations§
impl Freeze for PacketContext
impl RefUnwindSafe for PacketContext
impl Send for PacketContext
impl Sync for PacketContext
impl Unpin for PacketContext
impl UnsafeUnpin for PacketContext
impl UnwindSafe for PacketContext
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more