pub struct CrossShardEdge {
pub from_node: NodeId,
pub to_node: NodeId,
pub to_shard: ShardId,
pub weight: f64,
}Expand description
A cross-shard edge reference.
When an edge is created that spans two shards, the local shard stores the edge with a ghost node reference. This struct captures the information needed to resolve that ghost node on the remote shard.
Fields§
§from_node: NodeIdThe local node (source of the edge).
to_node: NodeIdThe remote node (target of the edge).
to_shard: ShardIdThe shard that owns the target node.
weight: f64The edge weight.
Trait Implementations§
Source§impl Clone for CrossShardEdge
impl Clone for CrossShardEdge
Source§fn clone(&self) -> CrossShardEdge
fn clone(&self) -> CrossShardEdge
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 CrossShardEdge
impl Debug for CrossShardEdge
Source§impl<'de> Deserialize<'de> for CrossShardEdge
impl<'de> Deserialize<'de> for CrossShardEdge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CrossShardEdge
impl RefUnwindSafe for CrossShardEdge
impl Send for CrossShardEdge
impl Sync for CrossShardEdge
impl Unpin for CrossShardEdge
impl UnsafeUnpin for CrossShardEdge
impl UnwindSafe for CrossShardEdge
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