pub enum FetchFailure {
Actionable(String),
Transient,
NotAttempted,
}Expand description
Outcome of a registry fetch attempt for one dependency, as recorded in
DocumentState::outcomes (deps-lsp) and rendered by
crate::lsp_helpers::generate_diagnostics_from_cache (#478).
Replaces a bare HashSet<PackageName> membership check so the per-dependency diagnostic
can distinguish a failure with a safe, user-actionable hint from an opaque one, without
ever threading raw, potentially IP-bearing error text into the diagnostic (see
DepsError::fetch_failure).
Variants§
Actionable(String)
The fetch failed with a pre-vetted, safe-to-display hint (currently only produced
from DepsError::RateLimited).
Transient
The fetch failed for a reason with no safe user-facing detail to show — the diagnostic falls back to a generic “lookup failed” message.
NotAttempted
The dependency was never actually queried (e.g. a name/source collision detected
before the fetch, see deps-lsp’s dedup_dependencies_by_source) — renders the
same generic “lookup failed” message as Self::Transient, since the absence of
an attempt is not evidence the package doesn’t exist.
Trait Implementations§
Source§impl Clone for FetchFailure
impl Clone for FetchFailure
Source§fn clone(&self) -> FetchFailure
fn clone(&self) -> FetchFailure
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FetchFailure
impl Debug for FetchFailure
impl Eq for FetchFailure
Source§impl PartialEq for FetchFailure
impl PartialEq for FetchFailure
Source§fn eq(&self, other: &FetchFailure) -> bool
fn eq(&self, other: &FetchFailure) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FetchFailure
Auto Trait Implementations§
impl Freeze for FetchFailure
impl RefUnwindSafe for FetchFailure
impl Send for FetchFailure
impl Sync for FetchFailure
impl Unpin for FetchFailure
impl UnsafeUnpin for FetchFailure
impl UnwindSafe for FetchFailure
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.