pub struct LocalSkillSource { /* private fields */ }Expand description
Default SkillSource reading from the local filesystem. Used in local
mode and by standalone library users.
Implementations§
Trait Implementations§
Source§impl SkillSource for LocalSkillSource
impl SkillSource for LocalSkillSource
Source§fn list_skill_dirs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, SkillError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_skill_dirs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, SkillError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List skill directories (absolute paths) under the skills root.
Source§fn read_skill_md<'life0, 'life1, 'async_trait>(
&'life0 self,
dir: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, SkillError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_skill_md<'life0, 'life1, 'async_trait>(
&'life0 self,
dir: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, SkillError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read
{dir}/SKILL.md. Ok(None) when the file is absent (the dir is
then skipped, not treated as an error).Auto Trait Implementations§
impl Freeze for LocalSkillSource
impl RefUnwindSafe for LocalSkillSource
impl Send for LocalSkillSource
impl Sync for LocalSkillSource
impl Unpin for LocalSkillSource
impl UnsafeUnpin for LocalSkillSource
impl UnwindSafe for LocalSkillSource
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