pub enum CandidateSource {
Manifest,
Shard,
History,
KeyCache,
Unknown,
}Expand description
Which source produced a candidate, i.e. how much to trust it (kunobi-ninja/kache#617).
Unknown is the #[serde(other)] arm so a newer planner naming a source
this build has never heard of degrades to “untrusted” instead of failing
the whole plan.
Variants§
Manifest
Recorded action list for this lockfile + target + profile.
Shard
Exact lockfile-shard match: this build’s dependency set produced it.
History
This machine built this crate before.
KeyCache
A crate NAME matched something in the remote listing. A crate name is not a build identity, so this is a guess.
Unknown
Implementations§
Source§impl CandidateSource
impl CandidateSource
Sourcepub fn confidence_rank(self) -> u8
pub fn confidence_rank(self) -> u8
Confidence rank, lower is better. Only the ORDER matters; these are not probabilities and must not be presented as any.
Trait Implementations§
Source§impl Clone for CandidateSource
impl Clone for CandidateSource
Source§fn clone(&self) -> CandidateSource
fn clone(&self) -> CandidateSource
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 moreimpl Copy for CandidateSource
Source§impl Debug for CandidateSource
impl Debug for CandidateSource
Source§impl Default for CandidateSource
impl Default for CandidateSource
Source§fn default() -> CandidateSource
fn default() -> CandidateSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CandidateSource
impl<'de> Deserialize<'de> for CandidateSource
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 CandidateSource
Source§impl PartialEq for CandidateSource
impl PartialEq for CandidateSource
Source§impl Serialize for CandidateSource
impl Serialize for CandidateSource
impl StructuralPartialEq for CandidateSource
Auto Trait Implementations§
impl Freeze for CandidateSource
impl RefUnwindSafe for CandidateSource
impl Send for CandidateSource
impl Sync for CandidateSource
impl Unpin for CandidateSource
impl UnsafeUnpin for CandidateSource
impl UnwindSafe for CandidateSource
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