pub trait RoutingAlgorithm {
// Required method
fn route(&self, current: Point, target: Address, time_s: u32) -> Hop;
}Expand description
Decides the next hop for a packet.
pub trait RoutingAlgorithm {
// Required method
fn route(&self, current: Point, target: Address, time_s: u32) -> Hop;
}Decides the next hop for a packet.