pub trait Delaying<A: Actor> {
// Provided methods
fn started(&mut self, _: &mut Context<A>) { ... }
fn state(&mut self, _: &mut Context<A>) -> DelayingState { ... }
fn aborted(&mut self, _: &mut Context<A>) { ... }
fn emitted(&mut self, _: &mut Context<A>) { ... }
fn finished(&mut self, _: &mut Context<A>) { ... }
}
Expand description
An abstraction for Actor’s delaying routine
Provided Methods§
sourcefn state(&mut self, _: &mut Context<A>) -> DelayingState
fn state(&mut self, _: &mut Context<A>) -> DelayingState
change the state of the Delayer to abort/emit/continue the Delayer when some condition satisfied
Real-Time control or more elaborated execution could be achieved right here