pub struct AgendaManager { /* private fields */ }Expand description
Manages agenda groups for workflow control
Implementations§
Source§impl AgendaManager
impl AgendaManager
Sourcepub fn get_active_group(&self) -> &str
pub fn get_active_group(&self) -> &str
Get the currently active agenda group
Sourcepub fn should_evaluate_rule(&self, rule: &Rule) -> bool
pub fn should_evaluate_rule(&self, rule: &Rule) -> bool
Check if a rule should be evaluated based on agenda group
Sourcepub fn can_fire_rule(&self, rule: &Rule) -> bool
pub fn can_fire_rule(&self, rule: &Rule) -> bool
Check if a rule can fire considering lock-on-active
Sourcepub fn mark_rule_fired(&mut self, rule: &Rule)
pub fn mark_rule_fired(&mut self, rule: &Rule)
Mark a rule as fired for lock-on-active tracking
Sourcepub fn pop_focus(&mut self) -> Option<String>
pub fn pop_focus(&mut self) -> Option<String>
Pop the focus stack (return to previous agenda group)
Sourcepub fn clear_focus(&mut self)
pub fn clear_focus(&mut self)
Clear all focus and return to MAIN
Sourcepub fn get_agenda_groups(&self, rules: &[Rule]) -> Vec<String>
pub fn get_agenda_groups(&self, rules: &[Rule]) -> Vec<String>
Get all agenda groups with rules
Sourcepub fn filter_rules<'a>(&self, rules: &'a [Rule]) -> Vec<&'a Rule>
pub fn filter_rules<'a>(&self, rules: &'a [Rule]) -> Vec<&'a Rule>
Filter rules by current agenda group
Sourcepub fn reset_cycle(&mut self)
pub fn reset_cycle(&mut self)
Reset for new execution cycle
Trait Implementations§
Source§impl Clone for AgendaManager
impl Clone for AgendaManager
Source§fn clone(&self) -> AgendaManager
fn clone(&self) -> AgendaManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgendaManager
impl Debug for AgendaManager
Auto Trait Implementations§
impl Freeze for AgendaManager
impl RefUnwindSafe for AgendaManager
impl Send for AgendaManager
impl Sync for AgendaManager
impl Unpin for AgendaManager
impl UnwindSafe for AgendaManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more