pub struct NetworkTopology {
pub nodes: HashMap<String, NetworkNode>,
pub connections: HashMap<String, NetworkConnection>,
pub clusters: HashMap<String, NetworkCluster>,
pub metrics: TopologyMetrics,
}
Expand description
Network topology manager
Fieldsยง
ยงnodes: HashMap<String, NetworkNode>
Network nodes
connections: HashMap<String, NetworkConnection>
Network connections
clusters: HashMap<String, NetworkCluster>
Network clusters
metrics: TopologyMetrics
Topology metrics
Implementationsยง
Sourceยงimpl NetworkTopology
impl NetworkTopology
pub fn new() -> Self
Sourcepub fn update_from_organisms(
&mut self,
organisms: &HashMap<String, OrganismNode>,
)
pub fn update_from_organisms( &mut self, organisms: &HashMap<String, OrganismNode>, )
Update topology from organism information
Sourcepub fn calculate_metrics(&mut self)
pub fn calculate_metrics(&mut self)
Calculate topology metrics
Trait Implementationsยง
Sourceยงimpl Clone for NetworkTopology
impl Clone for NetworkTopology
Sourceยงfn clone(&self) -> NetworkTopology
fn clone(&self) -> NetworkTopology
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementationsยง
impl Freeze for NetworkTopology
impl RefUnwindSafe for NetworkTopology
impl Send for NetworkTopology
impl Sync for NetworkTopology
impl Unpin for NetworkTopology
impl UnwindSafe for NetworkTopology
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