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
TimeOut(f64)
The process that yields this effect will be resumed after the speified time
Event(Event)
Yielding this effect it is possible to schedule the specified event
Request(ResourceId)
This effect is yielded to request a resource
Release(ResourceId)
This effect is yielded to release a resource that is not needed anymore.
Wait
Keep the process' state until it is resumed by another event.
Trait Implementations
impl Debug for Effect
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more