pub struct HostCapabilityProbe { /* private fields */ }Expand description
Snapshot of host OS, architecture, installed Rust targets, SDK paths, and CLI build tools.
Implementations§
Source§impl HostCapabilityProbe
Host capability detection and per-target readiness evaluation on HostCapabilityProbe.
impl HostCapabilityProbe
Host capability detection and per-target readiness evaluation on HostCapabilityProbe.
Sourcepub fn detect() -> Self
pub fn detect() -> Self
Detects the active host OS, installed Rust targets, SDK environment variables, and external build tools.
§Returns
Self- Populated host capability snapshot.
Sourcepub fn has_triple(&self, triple: &str) -> bool
pub fn has_triple(&self, triple: &str) -> bool
Sourcepub fn probe_target(&self, target: TargetArg) -> TargetCapability
pub fn probe_target(&self, target: TargetArg) -> TargetCapability
Sourcepub fn probe_targets(&self, targets: &[TargetArg]) -> Vec<TargetCapability>
pub fn probe_targets(&self, targets: &[TargetArg]) -> Vec<TargetCapability>
Sourcepub fn probe_all(&self) -> Vec<TargetCapability>
pub fn probe_all(&self) -> Vec<TargetCapability>
Evaluates readiness across all 38 concrete euv targets (36 production + ios-sim / ipad-sim).
§Returns
Vec<TargetCapability>- Complete readiness matrix.
Sourcepub fn filter_buildable(
&self,
targets: &[TargetArg],
) -> (Vec<TargetArg>, Vec<TargetCapability>)
pub fn filter_buildable( &self, targets: &[TargetArg], ) -> (Vec<TargetArg>, Vec<TargetCapability>)
Sourcepub fn missing_installable_triples(&self) -> Vec<String>
pub fn missing_installable_triples(&self) -> Vec<String>
Returns deduplicated missing rustup target triples supported on this host OS for euv doctor --fix.
§Returns
Vec<String>- Ordered list of installable missing target triples.
Source§impl HostCapabilityProbe
impl HostCapabilityProbe
pub fn get_host_os(&self) -> &String
pub fn get_host_arch(&self) -> &String
pub fn get_installed_triples(&self) -> &Vec<String>
pub fn get_available_tools(&self) -> &BTreeMap<String, String>
pub fn get_env_sdks(&self) -> &BTreeMap<String, String>
Trait Implementations§
Source§impl Clone for HostCapabilityProbe
impl Clone for HostCapabilityProbe
Source§impl Debug for HostCapabilityProbe
impl Debug for HostCapabilityProbe
Source§impl<'de> Deserialize<'de> for HostCapabilityProbe
impl<'de> Deserialize<'de> for HostCapabilityProbe
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HostCapabilityProbe
Source§impl PartialEq for HostCapabilityProbe
impl PartialEq for HostCapabilityProbe
Source§impl Serialize for HostCapabilityProbe
impl Serialize for HostCapabilityProbe
impl StructuralPartialEq for HostCapabilityProbe
Auto Trait Implementations§
impl Forget for HostCapabilityProbe
impl Freeze for HostCapabilityProbewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for HostCapabilityProbe
impl RefUnwindSafe for HostCapabilityProbe
impl Send for HostCapabilityProbe
impl Sync for HostCapabilityProbe
impl Unpin for HostCapabilityProbe
impl UnsafeUnpin for HostCapabilityProbewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for HostCapabilityProbe
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more