pub struct PlanError { /* private fields */ }Expand description
A stable planning failure with a validated logical path and no filesystem payload.
Implementations§
Source§impl PlanError
impl PlanError
Sourcepub fn path(&self) -> &RelativePath
pub fn path(&self) -> &RelativePath
Returns the validated workspace-relative location of the failure.
Sourcepub fn render_json(&self) -> String
pub fn render_json(&self) -> String
Renders canonical boxology.plan-error@1 JSON.
Sourcepub fn is_unknown_package(&self) -> bool
pub fn is_unknown_package(&self) -> bool
Returns whether this is the invocation-level unknown-package failure.
Trait Implementations§
impl Eq for PlanError
Source§impl Error for PlanError
impl Error for PlanError
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 From<PlanError> for CompareStepError
impl From<PlanError> for CompareStepError
impl StructuralPartialEq for PlanError
Auto Trait Implementations§
impl Freeze for PlanError
impl RefUnwindSafe for PlanError
impl Send for PlanError
impl Sync for PlanError
impl Unpin for PlanError
impl UnsafeUnpin for PlanError
impl UnwindSafe for PlanError
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<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.