Struct caminos_lib::routing::RoutingInfo [−][src]
pub struct RoutingInfo {
pub hops: usize,
pub routing_record: Option<Vec<i32>>,
pub selected_path: Option<Vec<usize>>,
pub selections: Option<Vec<i32>>,
pub visited_routers: Option<Vec<usize>>,
pub meta: Option<Vec<RefCell<RoutingInfo>>>,
}
Expand description
Information stored in the packet for the Routing
algorithms to operate.
Fields
hops: usize
Number of edges traversed (Router–Router). It is computed by the advance routine of the simulator.
routing_record: Option<Vec<i32>>
Difference in coordinates from origin to destination
selected_path: Option<Vec<usize>>
List of router indexes in the selected path from origin to destination
selections: Option<Vec<i32>>
Some selections made by the routing
visited_routers: Option<Vec<usize>>
List of router indexes that have been visited already.
meta: Option<Vec<RefCell<RoutingInfo>>>
Mostly for the generic Valiant scheme.
Implementations
Trait Implementations
Get the total memory currently being employed by the implementing type. Both stack and heap.
Prints by stdout how much memory is used per component.
Get an estimation on how much memory the type could reach during the simulation.