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§

source

fn started(&mut self, _: &mut Context<A>)

called before the Delayer

source

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

source

fn aborted(&mut self, _: &mut Context<A>)

called before the Delayer get aborted

source

fn emitted(&mut self, _: &mut Context<A>)

called after the Delayer emitted in advance

source

fn finished(&mut self, _: &mut Context<A>)

called after the Delayer finished

Implementors§