feat(topology): generalize Score and Interpret implementations with topology traits

Refactor various `Score` and `Interpret` implementations to utilize generic `Topology` traits, removing hardcoded dependencies on `HAClusterTopology`. This enhancement allows for more flexible and extensible code, accommodating different types of network topologies.
This commit is contained in:
2025-03-26 23:10:51 -04:00
parent d7897f29c4
commit fda007f014
22 changed files with 148 additions and 217 deletions

View File

@@ -16,6 +16,12 @@ pub use tftp::*;
use std::net::IpAddr;
pub trait Topology {
fn name(&self) -> &str;
}
pub trait Capability {}
pub type IpAddress = IpAddr;
#[derive(Debug, Clone)]