pub struct VerifierCapability {
pub stage: VerifierStage,
pub command: Option<String>,
pub available: bool,
pub fallback_command: Option<String>,
pub fallback_available: bool,
}Expand description
A single verifier sensor: one stage of the verification pipeline.
Each capability independently declares its command, host-tool availability,
and optional fallback. This replaces the coarse single host_tool_available()
check with per-sensor probing.
Fields§
§stage: VerifierStageWhich stage this capability covers.
command: Option<String>Primary command to execute (None if this stage is not supported).
available: boolWhether the primary command’s host tool is available on this machine.
fallback_command: Option<String>Fallback command when the primary tool is unavailable.
fallback_available: boolWhether the fallback tool is available.
Implementations§
Source§impl VerifierCapability
impl VerifierCapability
Sourcepub fn any_available(&self) -> bool
pub fn any_available(&self) -> bool
True if either the primary or fallback tool is available.
Sourcepub fn effective_command(&self) -> Option<&str>
pub fn effective_command(&self) -> Option<&str>
The best available command, preferring primary over fallback.
Trait Implementations§
Source§impl Clone for VerifierCapability
impl Clone for VerifierCapability
Source§fn clone(&self) -> VerifierCapability
fn clone(&self) -> VerifierCapability
Returns a duplicate of the value. Read more
1.0.0 · 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 VerifierCapability
impl RefUnwindSafe for VerifierCapability
impl Send for VerifierCapability
impl Sync for VerifierCapability
impl Unpin for VerifierCapability
impl UnsafeUnpin for VerifierCapability
impl UnwindSafe for VerifierCapability
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