pub enum ChainError<A, B> {
Both(A, B),
}Expand description
Combined error from two chained loaders.
The second loader is only consulted after the first has failed, so a chain failure always carries both errors.
Variants§
Both(A, B)
Both loaders failed.
Trait Implementations§
Source§impl<A, B> Display for ChainError<A, B>
impl<A, B> Display for ChainError<A, B>
Source§impl<A, B> Error for ChainError<A, B>
impl<A, B> Error for ChainError<A, B>
1.30.0 · 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<A, B> Freeze for ChainError<A, B>
impl<A, B> RefUnwindSafe for ChainError<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for ChainError<A, B>
impl<A, B> Sync for ChainError<A, B>
impl<A, B> Unpin for ChainError<A, B>
impl<A, B> UnsafeUnpin for ChainError<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for ChainError<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.