pub enum SkillErrorKind {
Usage,
InvalidSpec,
Refused,
Io,
}Expand description
What kind of failure a SkillError is, so a caller can pick an exit
status and a stable code without parsing the message.
Variants§
Usage
The options cannot name a target: --skills-dir with every agent, or
no usable home directory. Nothing was touched.
InvalidSpec
The embedding program’s SkillSpec is malformed — a defect in the
program, not in the call.
Refused
A target holds something afdata will not overwrite or remove: an unmanaged or invalid skill, a symlink, a path outside the skills directory.
Io
The filesystem failed while reading or writing a target.
Implementations§
Trait Implementations§
Source§impl Clone for SkillErrorKind
impl Clone for SkillErrorKind
impl Copy for SkillErrorKind
Source§impl Debug for SkillErrorKind
impl Debug for SkillErrorKind
impl Eq for SkillErrorKind
Source§impl PartialEq for SkillErrorKind
impl PartialEq for SkillErrorKind
impl StructuralPartialEq for SkillErrorKind
Auto Trait Implementations§
impl Freeze for SkillErrorKind
impl RefUnwindSafe for SkillErrorKind
impl Send for SkillErrorKind
impl Sync for SkillErrorKind
impl Unpin for SkillErrorKind
impl UnsafeUnpin for SkillErrorKind
impl UnwindSafe for SkillErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.