pub enum SkillScriptSource {
Inline(Arc<dyn Fn(Option<Value>) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send>> + Send + Sync>),
File {
full_path: PathBuf,
},
}Expand description
Where a SkillScript’s code lives.
Variants§
Inline(Arc<dyn Fn(Option<Value>) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send>> + Send + Sync>)
Code-defined: run in-process.
File
A file in the skill’s directory, run by the provider’s
SkillScriptRunner.
Trait Implementations§
Source§impl Clone for SkillScriptSource
impl Clone for SkillScriptSource
Source§fn clone(&self) -> SkillScriptSource
fn clone(&self) -> SkillScriptSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SkillScriptSource
impl !UnwindSafe for SkillScriptSource
impl Freeze for SkillScriptSource
impl Send for SkillScriptSource
impl Sync for SkillScriptSource
impl Unpin for SkillScriptSource
impl UnsafeUnpin for SkillScriptSource
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