pub struct Capabilities { /* private fields */ }Expand description
Effective capability of every tool on this host, plus the raw per-family
probe results. Built by resolve once at startup; consulted at dispatch
(see route_skill_gated) and useful
for a startup log line or a status snapshot.
Implementations§
Source§impl Capabilities
impl Capabilities
Sourcepub fn resolved(&self, tool: &str) -> SkillCapability
pub fn resolved(&self, tool: &str) -> SkillCapability
Effective capability for one tool. An unknown tool resolves to
SkillCapability::Ready (no probe means no requirement).
Sourcepub fn is_ready(&self, tool: &str) -> bool
pub fn is_ready(&self, tool: &str) -> bool
true iff the tool can run on this host. Unknown tool → true.
Sourcepub fn tools(&self) -> &HashMap<&'static str, SkillCapability>
pub fn tools(&self) -> &HashMap<&'static str, SkillCapability>
The full effective per-tool map.
Sourcepub fn families(&self) -> &HashMap<&'static str, SkillCapability>
pub fn families(&self) -> &HashMap<&'static str, SkillCapability>
The raw per-family probe map (before the per-tool combination).
Tools that are blocked on this host — convenient for emitting one startup warning per missing requirement.
Families that are blocked on this host.
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
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 moreSource§impl Debug for Capabilities
impl Debug for Capabilities
Source§impl Default for Capabilities
impl Default for Capabilities
Source§fn default() -> Capabilities
fn default() -> Capabilities
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnsafeUnpin for Capabilities
impl UnwindSafe for Capabilities
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