pub struct ExtensionApi { /* private fields */ }Expand description
Extension system calls.
Implementations§
Source§impl ExtensionApi
impl ExtensionApi
Sourcepub fn new(skill_manager: Arc<SkillManager>) -> Self
pub fn new(skill_manager: Arc<SkillManager>) -> Self
Create a new ExtensionApi with only a SkillManager.
Sourcepub async fn list_skills_entries(&self) -> Vec<SkillEntry>
pub async fn list_skills_entries(&self) -> Vec<SkillEntry>
List installed skill entries.
Sourcepub async fn get_skill_entry(&self, name: &str) -> Option<SkillEntry>
pub async fn get_skill_entry(&self, name: &str) -> Option<SkillEntry>
Get skill details.
Sourcepub async fn enable_skill(&self, name: &str) -> Result<()>
pub async fn enable_skill(&self, name: &str) -> Result<()>
Enable a skill.
Sourcepub async fn disable_skill(&self, name: &str) -> Result<()>
pub async fn disable_skill(&self, name: &str) -> Result<()>
Disable a skill.
Sourcepub async fn check_skill_requirements(
&self,
name: &str,
) -> Option<RequirementsCheck>
pub async fn check_skill_requirements( &self, name: &str, ) -> Option<RequirementsCheck>
Check requirements for a skill.
Sourcepub async fn list_skills(&self) -> Result<Vec<SkillMeta>>
pub async fn list_skills(&self) -> Result<Vec<SkillMeta>>
List all skills (metadata only).
Sourcepub async fn create_skill(
&self,
name: &str,
description: &str,
content: &str,
) -> Result<()>
pub async fn create_skill( &self, name: &str, description: &str, content: &str, ) -> Result<()>
Create a new skill.
Sourcepub async fn delete_skill(&self, name: &str) -> Result<()>
pub async fn delete_skill(&self, name: &str) -> Result<()>
Delete a skill.
Sourcepub fn skill_manager(&self) -> &Arc<SkillManager> ⓘ
pub fn skill_manager(&self) -> &Arc<SkillManager> ⓘ
Skill manager reference.
Auto Trait Implementations§
impl !RefUnwindSafe for ExtensionApi
impl !UnwindSafe for ExtensionApi
impl Freeze for ExtensionApi
impl Send for ExtensionApi
impl Sync for ExtensionApi
impl Unpin for ExtensionApi
impl UnsafeUnpin for ExtensionApi
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