Struct caminos_lib::Phit[][src]

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

Whether the phit is leading a packet. Routers check this to make requests, stablish flows, etc.

Whether this phit is the last one of a packet. Routers use this to finalize some operations.

Trait Implementations

Formats the value using the given formatter. Read more

Get the total memory currently being employed by the implementing type. Both stack and heap.

Prints by stdout how much memory is used per component.

Get an estimation on how much memory the type could reach during the simulation.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.