[−][src]Struct caminos_lib::routing::RoutingInfo
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
impl RoutingInfo
[src]
pub fn new() -> RoutingInfo
[src]
Trait Implementations
impl Debug for RoutingInfo
[src]
impl Quantifiable for RoutingInfo
[src]
pub fn total_memory(&self) -> usize
[src]
pub fn print_memory_breakdown(&self)
[src]
pub fn forecast_total_memory(&self) -> usize
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RoutingInfo
impl Send for RoutingInfo
impl !Sync for RoutingInfo
impl Unpin for RoutingInfo
impl UnwindSafe for RoutingInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,