pub struct SnapshotEdge {
pub from: (NodeId, PortIdx),
pub to: (NodeId, PortIdx),
}Available on crate feature
topology only.Expand description
A directed edge captured in a TopologySnapshot.
Mirrors the internal graph edge: an output port feeding an input port. The
(NodeId, PortIdx) pairs are kept as plain tuples so the snapshot
serializes compactly and stays format-agnostic.
Fields§
§from: (NodeId, PortIdx)Source (node, output-port).
to: (NodeId, PortIdx)Destination (node, input-port).
Trait Implementations§
Source§impl Clone for SnapshotEdge
impl Clone for SnapshotEdge
Source§fn clone(&self) -> SnapshotEdge
fn clone(&self) -> SnapshotEdge
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 SnapshotEdge
Source§impl Debug for SnapshotEdge
impl Debug for SnapshotEdge
Source§impl<'de> Deserialize<'de> for SnapshotEdge
impl<'de> Deserialize<'de> for SnapshotEdge
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
impl Eq for SnapshotEdge
Source§impl PartialEq for SnapshotEdge
impl PartialEq for SnapshotEdge
Source§impl Serialize for SnapshotEdge
impl Serialize for SnapshotEdge
impl StructuralPartialEq for SnapshotEdge
Auto Trait Implementations§
impl Freeze for SnapshotEdge
impl RefUnwindSafe for SnapshotEdge
impl Send for SnapshotEdge
impl Sync for SnapshotEdge
impl Unpin for SnapshotEdge
impl UnsafeUnpin for SnapshotEdge
impl UnwindSafe for SnapshotEdge
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