pub enum CapabilitySource {
Version,
Probe,
AssumedDefault,
Unsupported,
}Expand description
Where one capability decision came from. Recorded so
cabin metadata can show whether Cabin trusted the version
alone, ran a probe, or fell back to a conservative default.
Variants§
Version
Inferred from a recognized compiler kind/version.
Probe
Established by running a tightly-scoped probe command. Not currently used; reserved for a future probe-based source without changing the data model.
AssumedDefault
Conservative default applied when the compiler kind is
Unknown or detection failed.
Unsupported
The selected tool is recognizably unable to provide this capability (e.g. MSVC asked for GCC-style flags).
Implementations§
Trait Implementations§
Source§impl Clone for CapabilitySource
impl Clone for CapabilitySource
Source§fn clone(&self) -> CapabilitySource
fn clone(&self) -> CapabilitySource
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 CapabilitySource
impl Debug for CapabilitySource
Source§impl<'de> Deserialize<'de> for CapabilitySource
impl<'de> Deserialize<'de> for CapabilitySource
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
Source§impl PartialEq for CapabilitySource
impl PartialEq for CapabilitySource
Source§fn eq(&self, other: &CapabilitySource) -> bool
fn eq(&self, other: &CapabilitySource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CapabilitySource
impl Serialize for CapabilitySource
impl Copy for CapabilitySource
impl Eq for CapabilitySource
impl StructuralPartialEq for CapabilitySource
Auto Trait Implementations§
impl Freeze for CapabilitySource
impl RefUnwindSafe for CapabilitySource
impl Send for CapabilitySource
impl Sync for CapabilitySource
impl Unpin for CapabilitySource
impl UnsafeUnpin for CapabilitySource
impl UnwindSafe for CapabilitySource
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
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§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.