pub struct PacketExtraInfo {
pub link_classes: Vec<usize>,
pub entry_virtual_channels: Vec<Option<usize>>,
pub cycle_per_hop: Vec<Time>,
pub id_switches: Vec<usize>,
}
Fields§
§link_classes: Vec<usize>
Link classes that the packet traverse
entry_virtual_channels: Vec<Option<usize>>
List of VCs which the packet traverses
cycle_per_hop: Vec<Time>
The cycle per hop
id_switches: Vec<usize>
List of switchs which a packet traverse
Trait Implementations§
Source§impl Debug for PacketExtraInfo
impl Debug for PacketExtraInfo
Source§impl Default for PacketExtraInfo
impl Default for PacketExtraInfo
Source§fn default() -> PacketExtraInfo
fn default() -> PacketExtraInfo
Returns the “default value” for a type. Read more
Source§impl Quantifiable for PacketExtraInfo
impl Quantifiable for PacketExtraInfo
Source§fn total_memory(&self) -> usize
fn total_memory(&self) -> usize
Get the total memory currently being employed by the implementing type. Both stack and heap.
Source§fn print_memory_breakdown(&self)
fn print_memory_breakdown(&self)
Prints by stdout how much memory is used per component.
Source§fn forecast_total_memory(&self) -> usize
fn forecast_total_memory(&self) -> usize
Get an estimation on how much memory the type could reach during the simulation.
Auto Trait Implementations§
impl Freeze for PacketExtraInfo
impl RefUnwindSafe for PacketExtraInfo
impl Send for PacketExtraInfo
impl Sync for PacketExtraInfo
impl Unpin for PacketExtraInfo
impl UnwindSafe for PacketExtraInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more