[−][src]Struct spirit::fragment::pipeline::MultiError
An error caused by multiple other errors.
Carries all the errors that caused it to fail (publicly accessible). Multiple are possible.
The cause
is delegated to the first error, if any is present.
Fields
errors: Vec<AnyError>
All the errors that happened.
pipeline: &'static str
The pipeline this error comes from.
Implementations
impl MultiError
[src]
pub fn wrap(errs: Vec<AnyError>, pipeline: &'static str) -> AnyError
[src]
Creates a multi-error.
Depending on if one error is passed or multiple, the error is either propagated through
(without introducing another layer of indirection) or all the errors are wrapped into a
MultiError
.
Panics
If the errs
passed is empty (eg. then there are no errors, so it logically makes no sense
to call it an error).
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MultiError
impl Send for MultiError
impl Sync for MultiError
impl Unpin for MultiError
impl !UnwindSafe for MultiError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<E> ErrorExt for E where
E: Error,
[src]
E: Error,
fn context<M>(self, msg: M) -> Context<M, E> where
M: Display,
[src]
M: Display,
fn chain(&self) -> Chain<'_> where
E: 'static,
[src]
E: 'static,
fn find_source<T>(&self) -> Option<&T> where
Self: 'static,
T: 'static + Error,
[src]
Self: 'static,
T: 'static + Error,
fn display<S>(&self, separator: S) -> DisplayChain<'_, S> where
S: Display,
Self: 'static,
[src]
S: Display,
Self: 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoResult<T> for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,