pub struct SkillId(/* private fields */);Expand description
A unique identifier for a registered skill.
Derived from the manifest name + version at registration. The broker uses this to look up skills; the code hash pins the identity against drift.
Implementations§
Trait Implementations§
impl Eq for SkillId
Source§impl FromStr for SkillId
impl FromStr for SkillId
Source§fn from_str(raw: &str) -> Result<Self, Self::Err>
fn from_str(raw: &str) -> Result<Self, Self::Err>
Parses the exact name@version form, as a caller names a skill.
The split is at the first @: admission refuses @ in names,
so that is the only decomposition a registered id can have, and
the parsed id is byte-identical to the input. A bare name, or an
empty name or version, names no skill.
§Errors
Returns Error::UnknownSkill for anything not of that form.
impl StructuralPartialEq for SkillId
Auto Trait Implementations§
impl Freeze for SkillId
impl RefUnwindSafe for SkillId
impl Send for SkillId
impl Sync for SkillId
impl Unpin for SkillId
impl UnsafeUnpin for SkillId
impl UnwindSafe for SkillId
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