Struct dvcompute::simulation::process::ProcessId [−][src]
pub struct ProcessId { /* fields omitted */ }
Expand description
The computation identifier.
Implementations
Create a new computation identifier.
Returns the observable of computation events.
Signal when the cancellation is initiated.
Whether the cancellation was initiated.
Cancel a process with the specified identifier.
Preempt the computation.
Proceed with the computation after it was preempted earlier.
Signal when the computation is preempted.
Signal when the computation is proceeded after it was preempted.
Interrupt a process with the specified identifier if the process
is held by computation hold_process
. Returns an Event
computation.
Test whether the process with the specified identifier was interrupted.
Returns an Event
computation.
Return the expected interruption time after finishing the hold_process
computation,
which value may change if the corresponding process is preempted.
Returns an Event
computation.
Test whether the process with the specified identifier was passivated.
Returns an Event
computation.
Reactivate a process with the specified identifier.
Reactivate immediately a process with the specified identifier.
pub fn reactivate_many_immediately<I>(
pids: I
) -> ReactivateManyImmediately<I::IntoIter> where
I: IntoIterator<Item = Rc<ProcessId>> + 'static,
pub fn reactivate_many_immediately<I>(
pids: I
) -> ReactivateManyImmediately<I::IntoIter> where
I: IntoIterator<Item = Rc<ProcessId>> + 'static,
Reactivate immediately the processes with specfified identifies.