pub struct FsSkillRegistryManager { /* private fields */ }Implementations§
Source§impl FsSkillRegistryManager
impl FsSkillRegistryManager
pub fn discover_roots( roots: Vec<PathBuf>, ) -> Result<FsSkillRegistryManager, SkillRegistryManagerError>
pub async fn refresh(&self) -> Result<u64, SkillRegistryManagerError>
pub fn start_periodic_refresh( &self, interval: Duration, ) -> Result<(), SkillRegistryManagerError>
pub fn stop_periodic_refresh(&self) -> bool
pub fn periodic_refresh_running(&self) -> bool
pub fn version(&self) -> u64
pub fn warnings(&self) -> Vec<SkillWarning>
Trait Implementations§
Source§impl Clone for FsSkillRegistryManager
impl Clone for FsSkillRegistryManager
Source§fn clone(&self) -> FsSkillRegistryManager
fn clone(&self) -> FsSkillRegistryManager
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 FsSkillRegistryManager
impl Debug for FsSkillRegistryManager
Source§impl SkillRegistry for FsSkillRegistryManager
impl SkillRegistry for FsSkillRegistryManager
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 start_periodic_refresh( &self, interval: Duration, ) -> Result<(), SkillRegistryManagerError>
fn stop_periodic_refresh(&self) -> bool
fn periodic_refresh_running(&self) -> bool
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for FsSkillRegistryManager
impl RefUnwindSafe for FsSkillRegistryManager
impl Send for FsSkillRegistryManager
impl Sync for FsSkillRegistryManager
impl Unpin for FsSkillRegistryManager
impl UnwindSafe for FsSkillRegistryManager
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