pub trait Module {
// Provided methods
fn pre_timer(&mut self, _timer: TimerInfo) -> Result<Progress> { ... }
fn post_timer(&mut self, _timer: TimerInfo) -> Result<Progress> { ... }
fn warning(&mut self, _error: &Error) -> Result<()> { ... }
fn reset(&mut self) -> Result<()> { ... }
}
Expand description
A generic module that controls whether timers should execute or not (outside of the normal timer)
Provided Methods§
Sourcefn pre_timer(&mut self, _timer: TimerInfo) -> Result<Progress>
fn pre_timer(&mut self, _timer: TimerInfo) -> Result<Progress>
Decides if a timer should be allowed to execute
Sourcefn post_timer(&mut self, _timer: TimerInfo) -> Result<Progress>
fn post_timer(&mut self, _timer: TimerInfo) -> Result<Progress>
Decides what happens after a timer has executed
Trait Implementations§
Source§impl Module for Box<dyn Module>
impl Module for Box<dyn Module>
Source§fn pre_timer(&mut self, timer: TimerInfo) -> Result<Progress>
fn pre_timer(&mut self, timer: TimerInfo) -> Result<Progress>
Decides if a timer should be allowed to execute
Source§fn post_timer(&mut self, timer: TimerInfo) -> Result<Progress>
fn post_timer(&mut self, timer: TimerInfo) -> Result<Progress>
Decides what happens after a timer has executed
Implementations on Foreign Types§
Source§impl<A, B> Module for (A, B)
Combine two timers using the type-system. Can be recursed for a
fixed-size amount of timers. Similar to iterator.chain.
impl<A, B> Module for (A, B)
Combine two timers using the type-system. Can be recursed for a fixed-size amount of timers. Similar to iterator.chain.