Struct caminos_lib::Phit [−][src]
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
impl Phit
[src]
pub fn is_begin(&self) -> bool
[src]
Whether the phit is leading a packet. Routers check this to make requests, stablish flows, etc.
pub fn is_end(&self) -> bool
[src]
Whether this phit is the last one of a packet. Routers use this to finalize some operations.
Trait Implementations
impl Debug for Phit
[src]
impl Quantifiable for Phit
[src]
fn total_memory(&self) -> usize
[src]
fn print_memory_breakdown(&self)
[src]
fn forecast_total_memory(&self) -> usize
[src]
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
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>,