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

Formats the value using the given formatter. Read more

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.