Trait primitives::prelude::AgendaManager
source · [−]pub trait AgendaManager {
fn agenda(&self) -> Agenda;
fn set_egenda(&self, val: Agenda) -> bool;
}
Expand description
Objects intending to provide an Agenda driven state machine should implement this interface.
Required Methods
fn set_egenda(&self, val: Agenda) -> bool
fn set_egenda(&self, val: Agenda) -> bool
Change the object’s current agenda. Returns true if the agenda has changed, false otherwise.
Arguments
val
- The new agenda. If none is specified will assign to Agenda::ALWAYS.