pub struct InMemorySkillRegistry { /* private fields */ }Implementations§
Source§impl InMemorySkillRegistry
impl InMemorySkillRegistry
pub fn new() -> InMemorySkillRegistry
pub fn is_empty(&self) -> bool
pub fn from_skills(skills: Vec<Arc<dyn Skill>>) -> InMemorySkillRegistry
pub fn register( &mut self, skill: Arc<dyn Skill>, ) -> Result<(), SkillRegistryError>
pub fn extend_upsert(&mut self, skills: Vec<Arc<dyn Skill>>)
pub fn extend_registry( &mut self, other: &dyn SkillRegistry, ) -> Result<(), SkillRegistryError>
Trait Implementations§
Source§impl Clone for InMemorySkillRegistry
impl Clone for InMemorySkillRegistry
Source§fn clone(&self) -> InMemorySkillRegistry
fn clone(&self) -> InMemorySkillRegistry
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 InMemorySkillRegistry
impl Debug for InMemorySkillRegistry
Source§impl Default for InMemorySkillRegistry
impl Default for InMemorySkillRegistry
Source§fn default() -> InMemorySkillRegistry
fn default() -> InMemorySkillRegistry
Returns the “default value” for a type. Read more
Source§impl SkillRegistry for InMemorySkillRegistry
impl SkillRegistry for InMemorySkillRegistry
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>>
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
Auto Trait Implementations§
impl Freeze for InMemorySkillRegistry
impl !RefUnwindSafe for InMemorySkillRegistry
impl Send for InMemorySkillRegistry
impl Sync for InMemorySkillRegistry
impl Unpin for InMemorySkillRegistry
impl !UnwindSafe for InMemorySkillRegistry
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