Trait caminos_lib::router::TransmissionMechanism [−][src]
pub trait TransmissionMechanism {
type StatusAtEmissor: StatusAtEmissor;
type SpaceAtReceptor: SpaceAtReceptor;
fn new_status_at_emissor(&self) -> Self::StatusAtEmissor;
fn new_space_at_receptor(&self) -> Self::SpaceAtReceptor;
}
Expand description
How packets left a router and reach the next.
Declares a StatusAtEmissor
to keep a register on the emissor of the status of the receptor, such as credit counters.
Declares a SpaceAtReceptor
necessary to store the incoming packets.
It implies a contract between the pair of types (StatusAtEmissor
, SpaceAtReceptor
), which should be logically compatible.