pub struct StaticSkill { /* private fields */ }Expand description
An immutable, always-active Skill backed by UTF-8 instructions.
Use StaticSkill when Skill content is known while the Definition is built.
Selectable or execution-mutating Skills should implement ContextHook
directly and keep their state keyed by ExecutionId.
Implementations§
Source§impl StaticSkill
impl StaticSkill
Trait Implementations§
Source§impl ContextHook for StaticSkill
impl ContextHook for StaticSkill
fn name(&self) -> &str
Source§fn definition_fingerprint(&self) -> String
fn definition_fingerprint(&self) -> String
Stable authoring fingerprint for the Hook implementation/configuration. Read more
fn apply<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 ExtensionContext,
_: &'life2 ContextEvent,
_: &'life3 ContextFrame,
) -> Pin<Box<dyn Future<Output = Result<ContextPatch, ExtensionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl Freeze for StaticSkill
impl RefUnwindSafe for StaticSkill
impl Send for StaticSkill
impl Sync for StaticSkill
impl Unpin for StaticSkill
impl UnsafeUnpin for StaticSkill
impl UnwindSafe for StaticSkill
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