AgendaManager

Trait AgendaManager 

Source
pub trait AgendaManager {
    // Required methods
    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§

Source

fn agenda(&self) -> Agenda

The object’s current agenda.

Source

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.

Implementors§