Struct cargo::util::errors::ManifestError
source · pub struct ManifestError { /* private fields */ }
Expand description
Error wrapper related to a particular manifest and providing it’s path.
This error adds no displayable info of it’s own.
Implementations
sourceimpl ManifestError
impl ManifestError
pub fn new<E: Into<Error>>(cause: E, manifest: PathBuf) -> Self
pub fn manifest_path(&self) -> &PathBuf
sourcepub fn manifest_causes(&self) -> ManifestCauses<'_> ⓘ
pub fn manifest_causes(&self) -> ManifestCauses<'_> ⓘ
Returns an iterator over the ManifestError
chain of causes.
So if this error was not caused by another ManifestError
this will be empty.
Trait Implementations
sourceimpl Debug for ManifestError
impl Debug for ManifestError
sourceimpl Display for ManifestError
impl Display for ManifestError
sourceimpl Fail for ManifestError
impl Fail for ManifestError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreAuto Trait Implementations
impl !RefUnwindSafe for ManifestError
impl Send for ManifestError
impl Sync for ManifestError
impl Unpin for ManifestError
impl !UnwindSafe for ManifestError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more