Struct caminos_lib::event::EventQueue[][src]

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

The event queue structure managing the insertion and extraction of events.

Implementations

Creates a new EventQueue. size should be greater than any possible delay.

Advances the queue by a cycle. This drops the events in the finished cycle.

Access to the event in the ievent index of the events to be executed at the begin of the cycle.

Access to the event in the ievent index of the events to be executed at the end of the cycle.

Adds an event to the list of events to be executed at the begin of the cycle current_cycle + delay.

Adds an event to the list of events to be executed at the end of the cycle current_cycle + delay.

Adds an event as it requests.

Trait Implementations

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.