pub enum SkillCapability {
Ready,
Unavailable {
reason: String,
hint: Option<String>,
},
}Expand description
The result of a capability probe.
Variants§
Ready
Probe succeeded — the tool(s) can run.
Probe failed; the tool(s) should be blocked at dispatch. Both strings are meant to be short enough to render inline.
Implementations§
Source§impl SkillCapability
impl SkillCapability
Build an Unavailable with a remediation hint.
Build an Unavailable whose failure mode has no actionable hint
(e.g. “x86 disasm only on x86 hosts”).
Sourcepub fn is_ready(&self) -> bool
pub fn is_ready(&self) -> bool
true iff the probe returned SkillCapability::Ready.
Trait Implementations§
Source§impl Clone for SkillCapability
impl Clone for SkillCapability
Source§fn clone(&self) -> SkillCapability
fn clone(&self) -> SkillCapability
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 Freeze for SkillCapability
impl RefUnwindSafe for SkillCapability
impl Send for SkillCapability
impl Sync for SkillCapability
impl Unpin for SkillCapability
impl UnsafeUnpin for SkillCapability
impl UnwindSafe for SkillCapability
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