pub struct ProbedFacts {
pub os: Option<String>,
pub arch: Option<String>,
pub probed_user: Option<String>,
pub rch_wkr_path: Option<String>,
pub worker: Option<WorkerBinaryFacts>,
pub rust: RustFacts,
pub runtimes: RuntimeFacts,
pub disk_roots: Vec<DiskRootFacts>,
pub tools_present: Vec<String>,
pub tools_absent: Vec<String>,
/* private fields */
}Expand description
Structured facts parsed from probe output. Sub-facts are None/empty when
the corresponding probe produced no line (i.e. the capability is absent).
Fields§
§os: Option<String>Probed host OS, normalized by normalize_probed_os.
arch: Option<String>§probed_user: Option<String>§rch_wkr_path: Option<String>§worker: Option<WorkerBinaryFacts>§rust: RustFacts§runtimes: RuntimeFacts§disk_roots: Vec<DiskRootFacts>§tools_present: Vec<String>Operator-declared tools whose probe exited zero on this worker.
tools_absent: Vec<String>Operator-declared tools whose probe ran and did NOT exit zero.
Implementations§
Source§impl ProbedFacts
impl ProbedFacts
Sourcepub fn target_triple(&self) -> Option<String>
pub fn target_triple(&self) -> Option<String>
The worker’s derived target triple from probed os/arch (libc unknown here
— defaults to gnu on linux; collectors that know musl override on the
assembled crate::worker_facts::HostFacts).
Sourcepub fn has_tool(&self, name: &str) -> bool
pub fn has_tool(&self, name: &str) -> bool
Whether a named tool was VERIFIED present on this worker. Absence of
evidence reads as absence: a tool nobody declared a probe for is not
present, which is what keeps an unknown --require-tool name
inadmissible everywhere instead of silently unconstrained.
Sourcepub fn declares_tool(&self, name: &str) -> bool
pub fn declares_tool(&self, name: &str) -> bool
Whether this worker DECLARED a probe for the tool (either outcome). Distinguishes “the fleet never declared it” from “declared, probe fails”.
Trait Implementations§
Source§impl Clone for ProbedFacts
impl Clone for ProbedFacts
Source§impl Debug for ProbedFacts
impl Debug for ProbedFacts
Source§impl Default for ProbedFacts
impl Default for ProbedFacts
impl Eq for ProbedFacts
Source§impl PartialEq for ProbedFacts
impl PartialEq for ProbedFacts
impl StructuralPartialEq for ProbedFacts
Auto Trait Implementations§
impl Freeze for ProbedFacts
impl RefUnwindSafe for ProbedFacts
impl Send for ProbedFacts
impl Sync for ProbedFacts
impl Unpin for ProbedFacts
impl UnsafeUnpin for ProbedFacts
impl UnwindSafe for ProbedFacts
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.