pub struct CargoPathDependencyError { /* private fields */ }Expand description
Structured error with explicit diagnostics.
Implementations§
Source§impl CargoPathDependencyError
impl CargoPathDependencyError
Sourcepub fn kind(&self) -> &CargoPathDependencyErrorKind
pub fn kind(&self) -> &CargoPathDependencyErrorKind
Error category.
Sourcepub fn manifest_path(&self) -> Option<&Path>
pub fn manifest_path(&self) -> Option<&Path>
Manifest path associated with the error when available.
Sourcepub fn dependency_name(&self) -> Option<&str>
pub fn dependency_name(&self) -> Option<&str>
Dependency key associated with the error when available.
Sourcepub fn dependency_path(&self) -> Option<&Path>
pub fn dependency_path(&self) -> Option<&Path>
Dependency path associated with the error when available.
Sourcepub fn cycle(&self) -> &[PathBuf]
pub fn cycle(&self) -> &[PathBuf]
Cycle path for cyclic failures (ordered, includes repeated terminal node).
Sourcepub fn diagnostics(&self) -> &[String]
pub fn diagnostics(&self) -> &[String]
Structured diagnostic lines.
Trait Implementations§
Source§impl Clone for CargoPathDependencyError
impl Clone for CargoPathDependencyError
Source§fn clone(&self) -> CargoPathDependencyError
fn clone(&self) -> CargoPathDependencyError
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 CargoPathDependencyError
impl Debug for CargoPathDependencyError
Source§impl Display for CargoPathDependencyError
impl Display for CargoPathDependencyError
Source§impl Error for CargoPathDependencyError
impl Error for CargoPathDependencyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for CargoPathDependencyError
impl PartialEq for CargoPathDependencyError
Source§fn eq(&self, other: &CargoPathDependencyError) -> bool
fn eq(&self, other: &CargoPathDependencyError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CargoPathDependencyError
impl StructuralPartialEq for CargoPathDependencyError
Auto Trait Implementations§
impl Freeze for CargoPathDependencyError
impl RefUnwindSafe for CargoPathDependencyError
impl Send for CargoPathDependencyError
impl Sync for CargoPathDependencyError
impl Unpin for CargoPathDependencyError
impl UnsafeUnpin for CargoPathDependencyError
impl UnwindSafe for CargoPathDependencyError
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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<E> IntoErrorPanel for Ewhere
E: Error,
impl<E> IntoErrorPanel for Ewhere
E: Error,
Source§fn into_panel(self) -> ErrorPanel
fn into_panel(self) -> ErrorPanel
Convert this error into an ErrorPanel.