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<'_>ⓘNotable traits for ManifestCauses<'a>impl<'a> Iterator for ManifestCauses<'a> type Item = &'a ManifestError;
pub fn manifest_causes(&self) -> ManifestCauses<'_>ⓘNotable traits for ManifestCauses<'a>impl<'a> Iterator for ManifestCauses<'a> type Item = &'a ManifestError;
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 Error for ManifestError
impl Error for ManifestError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more