Struct caminos_lib::pattern::RandomMix[][src]

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

Use either of several patterns, with probability proportional to a weight.

Trait Implementations

Formats the value using the given formatter. Read more

Fix the input and output size, providing the topology and random number generator. Careful with using toology in sub-patterns. For example, it may be misleading to use the dragonfly topology when building a pattern among groups or a pattern among the ruters of a single group. Even just a pattern of routers instead of a pattern of servers can lead to mistakes. Read the documentation of the traffic or meta-pattern using the pattern to know what its their input and output. Read more

Obtain a destination of a source. This will be called repeteadly as the traffic requires destination for its messages.

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.