pub enum ForwardedHeader {
RelayNode {
header: Box<[u8]>,
mac: [u8; 32],
path_pos: u8,
next_node: Box<[u8]>,
additional_info: Box<[u8]>,
},
FinalNode {
additional_data: Box<[u8]>,
},
}
Expand description
Enum carry information about the packet based on whether it is destined for the current node (FinalNode
)
or if the packet is supposed to be only relayed (RelayNode
).
Variants§
Auto Trait Implementations§
impl Freeze for ForwardedHeader
impl RefUnwindSafe for ForwardedHeader
impl Send for ForwardedHeader
impl Sync for ForwardedHeader
impl Unpin for ForwardedHeader
impl UnwindSafe for ForwardedHeader
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