Struct caminos_lib::Phit[][src]

pub struct Phit {
    pub packet: Rc<Packet>,
    pub index: usize,
    pub virtual_channel: RefCell<Option<usize>>,
}

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.