Enum desim::Effect [] [src]

pub enum Effect {
    TimeOut(f64),
    Event(Event),
    Request(ResourceId),
    Release(ResourceId),
    Wait,
}

The effect is yelded by a process generator to interact with the simulation environment.

Variants

The process that yields this effect will be resumed after the speified time

Yielding this effect it is possible to schedule the specified event

This effect is yielded to request a resource

This effect is yielded to release a resource that is not needed anymore.

Keep the process' state until it is resumed by another event.

Trait Implementations

impl Debug for Effect
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Effect
[src]

impl Clone for Effect
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Effect

impl Sync for Effect