pub struct ManifestError {
cause: Error,
manifest: PathBuf,
}
Expand description
Error wrapper related to a particular manifest and providing it’s path.
This error adds no displayable info of it’s own.
Fields§
§cause: Error
§manifest: PathBuf
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)>
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()
Auto Trait Implementations§
impl Freeze for ManifestError
impl RefUnwindSafe for ManifestError
impl Send for ManifestError
impl Sync for ManifestError
impl Unpin for ManifestError
impl UnwindSafe for ManifestError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes