pub struct FileSkill { /* private fields */ }Expand description
A skill loaded from disk: manifest, full body, and resource index.
Implementations§
Trait Implementations§
Source§impl Skill for FileSkill
impl Skill for FileSkill
fn manifest(&self) -> &SkillManifest
Source§fn body(&self) -> Cow<'_, str>
fn body(&self) -> Cow<'_, str>
The full Markdown body, loaded on demand (progressive disclosure tier 2).
fn resources(&self) -> &[Resource]
fn handler( &self, ) -> Option<Arc<dyn for<'a> Fn(&'a mut Context, &'a mut World) -> Pin<Box<dyn Future<Output = Result<(), SkillError>> + Send + 'a>> + Sync + Send>>
Auto Trait Implementations§
impl Freeze for FileSkill
impl RefUnwindSafe for FileSkill
impl Send for FileSkill
impl Sync for FileSkill
impl Unpin for FileSkill
impl UnsafeUnpin for FileSkill
impl UnwindSafe for FileSkill
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