pub struct HypercubePacket {
pub source: NodeAddress,
pub destination: NodeAddress,
pub current_node: NodeAddress,
pub dimension_route: Vec<usize>,
pub route_index: usize,
pub payload: ZkProofSegment,
}Expand description
A routed packet carrying one proof segment through the hypercube.
Fields§
§source: NodeAddressNode the packet started from.
destination: NodeAddressNode it has to reach.
current_node: NodeAddressNode holding it now.
dimension_route: Vec<usize>Dimensions to cross, in order. Each hop flips that bit of the address.
route_index: usizePosition in dimension_route of the next hop.
payload: ZkProofSegmentThe proof segment being carried.
Trait Implementations§
Source§impl Clone for HypercubePacket
impl Clone for HypercubePacket
Auto Trait Implementations§
impl Freeze for HypercubePacket
impl RefUnwindSafe for HypercubePacket
impl Send for HypercubePacket
impl Sync for HypercubePacket
impl Unpin for HypercubePacket
impl UnsafeUnpin for HypercubePacket
impl UnwindSafe for HypercubePacket
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