pub struct NetworkDiscovery {
pub known_organisms: HashMap<String, OrganismNode>,
pub topology: NetworkTopology,
pub discovery_metrics: DiscoveryMetrics,
pub config: NetworkConfig,
}
Expand description
Network discovery and management system
Fieldsยง
ยงknown_organisms: HashMap<String, OrganismNode>
Known organisms in the network
topology: NetworkTopology
Network topology
discovery_metrics: DiscoveryMetrics
Discovery metrics
config: NetworkConfig
Network configuration
Implementationsยง
Sourceยงimpl NetworkDiscovery
impl NetworkDiscovery
Sourcepub fn new() -> Result<Self, NetworkError>
pub fn new() -> Result<Self, NetworkError>
Create new network discovery system
Sourcepub async fn discover_organisms(&mut self) -> Result<Vec<String>, NetworkError>
pub async fn discover_organisms(&mut self) -> Result<Vec<String>, NetworkError>
Discover organisms in the network
Sourcepub async fn connect_to_organism(
&mut self,
organism_id: &str,
) -> Result<(), NetworkError>
pub async fn connect_to_organism( &mut self, organism_id: &str, ) -> Result<(), NetworkError>
Connect to an organism
Sourcepub fn update_topology(&mut self)
pub fn update_topology(&mut self)
Update network topology
Sourcepub fn get_network_stats(&self) -> NetworkStats
pub fn get_network_stats(&self) -> NetworkStats
Get network statistics
Trait Implementationsยง
Sourceยงimpl Clone for NetworkDiscovery
impl Clone for NetworkDiscovery
Sourceยงfn clone(&self) -> NetworkDiscovery
fn clone(&self) -> NetworkDiscovery
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 NetworkDiscovery
impl RefUnwindSafe for NetworkDiscovery
impl Send for NetworkDiscovery
impl Sync for NetworkDiscovery
impl Unpin for NetworkDiscovery
impl UnwindSafe for NetworkDiscovery
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