Struct caminos_lib::Phit
source · [−]pub struct Phit {
pub packet: Rc<Packet>,
pub index: usize,
pub virtual_channel: RefCell<Option<usize>>,
}
Expand description
Minimal unit to be processed by the network. Not to be confused with flits.
Fields
packet: Rc<Packet>
The packet to what this phit belongs
index: usize
position inside the packet
virtual_channel: RefCell<Option<usize>>
The virtual channel in which this phit should be inserted
Implementations
Trait Implementations
sourceimpl Quantifiable for Phit
impl Quantifiable for Phit
sourcefn total_memory(&self) -> usize
fn total_memory(&self) -> usize
Get the total memory currently being employed by the implementing type. Both stack and heap.
sourcefn print_memory_breakdown(&self)
fn print_memory_breakdown(&self)
Prints by stdout how much memory is used per component.
sourcefn 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 !RefUnwindSafe for Phit
impl !Send for Phit
impl !Sync for Phit
impl Unpin for Phit
impl !UnwindSafe for Phit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more