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§
source§impl 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§
source§impl Debug for ManifestError
impl Debug for ManifestError
source§impl Display for ManifestError
impl Display for ManifestError
source§impl Error for ManifestError
impl Error for ManifestError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()