SkillRegistry

Trait SkillRegistry 

Source
pub trait SkillRegistry: Send + Sync {
    // Required methods
    fn len(&self) -> usize;
    fn get(&self, id: &str) -> Option<Arc<dyn Skill>>;
    fn ids(&self) -> Vec<String>;
    fn snapshot(&self) -> HashMap<String, Arc<dyn Skill>>;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn start_periodic_refresh(
        &self,
        _interval: Duration,
    ) -> Result<(), SkillRegistryManagerError> { ... }
    fn stop_periodic_refresh(&self) -> bool { ... }
    fn periodic_refresh_running(&self) -> bool { ... }
}

Required Methods§

Source

fn len(&self) -> usize

Source

fn get(&self, id: &str) -> Option<Arc<dyn Skill>>

Source

fn ids(&self) -> Vec<String>

Source

fn snapshot(&self) -> HashMap<String, Arc<dyn Skill>>

Provided Methods§

Implementors§