pub struct CodeSkills { /* private fields */ }Implementations§
Source§impl CodeSkills
impl CodeSkills
pub fn new(options: CodeSkillsOptions) -> Self
pub fn dir(&self) -> &Path
Sourcepub fn propose(
&self,
kind: CodeSkillKind,
payload: &Map<String, Value>,
signal: &Signal,
) -> Result<Value, String>
pub fn propose( &self, kind: CodeSkillKind, payload: &Map<String, Value>, signal: &Signal, ) -> Result<Value, String>
skills.propose_code / skills.propose_policy.
Sourcepub fn rollback(&self, payload: &Map<String, Value>) -> Result<Value, String>
pub fn rollback(&self, payload: &Map<String, Value>) -> Result<Value, String>
skills.rollback: only the active version can be rolled back; the version it superseded returns.
Auto Trait Implementations§
impl !RefUnwindSafe for CodeSkills
impl !UnwindSafe for CodeSkills
impl Forget for CodeSkills
impl Freeze for CodeSkills
impl Move for CodeSkills
impl Send for CodeSkills
impl Sync for CodeSkills
impl Unpin for CodeSkills
impl UnsafeUnpin for CodeSkills
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