Struct caminos_lib::traffic::ProductTraffic[][src]

pub struct ProductTraffic { /* fields omitted */ }
Expand description

Divides the network in blocks and use a Traffic inside blocks applying a global Pattern among blocks. First check whether a transformation at the Pattern level is enough; specially see the Product pattern.

Implementations

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.

Returns a new message following the indications of the traffic

Get its probability of generating per cycle

If the message was generated by the traffic updates itself and returns true

Indicates if the traffic is not going to generate any more messages.

Returns true if a server should generate a message this cycle

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.