Enum eth_state_fold::error::FoldableError
source · pub enum FoldableError<M: Middleware + 'static, F: Foldable + 'static> {
InnerError {
source: F::Error,
},
MiddlewareError {
source: M::Error,
},
BlockArchiveError {
source: BlockArchiveError<M>,
},
BlockUnavailable {},
LogUnavailable {},
PartitionError {
sources: Vec<M::Error>,
},
}Variants§
InnerError
MiddlewareError
Fields
§
source: M::ErrorBlockArchiveError
Fields
§
source: BlockArchiveError<M>PartitionError
Trait Implementations§
source§impl<M: Debug + Middleware + 'static, F: Debug + Foldable + 'static> Debug for FoldableError<M, F>where
F::Error: Debug,
M::Error: Debug,
impl<M: Debug + Middleware + 'static, F: Debug + Foldable + 'static> Debug for FoldableError<M, F>where F::Error: Debug, M::Error: Debug,
source§impl<M: Middleware + 'static, F: Foldable + 'static> Display for FoldableError<M, F>
impl<M: Middleware + 'static, F: Foldable + 'static> Display for FoldableError<M, F>
source§impl<M: Middleware + 'static, F: Foldable + 'static> Error for FoldableError<M, F>where
Self: Debug + Display,
impl<M: Middleware + 'static, F: Foldable + 'static> Error for FoldableError<M, F>where Self: Debug + Display,
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl<M: Middleware + 'static, F: Foldable + 'static> ErrorCompat for FoldableError<M, F>
impl<M: Middleware + 'static, F: Foldable + 'static> ErrorCompat for FoldableError<M, F>
source§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moresource§impl<M: Middleware, F: Foldable> FromErr<<M as Middleware>::Error> for FoldableError<M, F>
impl<M: Middleware, F: Foldable> FromErr<<M as Middleware>::Error> for FoldableError<M, F>
source§impl<M: Middleware + 'static, F: Foldable + 'static> IntoError<FoldableError<M, F>> for BlockArchiveSnafuwhere
FoldableError<M, F>: Error + ErrorCompat,
impl<M: Middleware + 'static, F: Foldable + 'static> IntoError<FoldableError<M, F>> for BlockArchiveSnafuwhere FoldableError<M, F>: Error + ErrorCompat,
§type Source = BlockArchiveError<M>
type Source = BlockArchiveError<M>
The underlying error
source§fn into_error(self, error: Self::Source) -> FoldableError<M, F>
fn into_error(self, error: Self::Source) -> FoldableError<M, F>
Combine the information to produce the error
source§fn into_error(self, error: Self::Source) -> FoldableError<M, F>
fn into_error(self, error: Self::Source) -> FoldableError<M, F>
Combine the information to produce the error
source§impl<M: Middleware + 'static, F: Foldable + 'static> IntoError<FoldableError<M, F>> for InnerSnafuwhere
FoldableError<M, F>: Error + ErrorCompat,
impl<M: Middleware + 'static, F: Foldable + 'static> IntoError<FoldableError<M, F>> for InnerSnafuwhere FoldableError<M, F>: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> FoldableError<M, F>
fn into_error(self, error: Self::Source) -> FoldableError<M, F>
Combine the information to produce the error
source§fn into_error(self, error: Self::Source) -> FoldableError<M, F>
fn into_error(self, error: Self::Source) -> FoldableError<M, F>
Combine the information to produce the error
source§impl<M: Middleware + 'static, F: Foldable + 'static> IntoError<FoldableError<M, F>> for MiddlewareSnafuwhere
FoldableError<M, F>: Error + ErrorCompat,
impl<M: Middleware + 'static, F: Foldable + 'static> IntoError<FoldableError<M, F>> for MiddlewareSnafuwhere FoldableError<M, F>: Error + ErrorCompat,
source§fn into_error(self, error: Self::Source) -> FoldableError<M, F>
fn into_error(self, error: Self::Source) -> FoldableError<M, F>
Combine the information to produce the error
source§impl<M: Middleware + 'static, F: Foldable + 'static, __T0> IntoError<FoldableError<M, F>> for PartitionSnafu<__T0>where
FoldableError<M, F>: Error + ErrorCompat,
__T0: Into<Vec<M::Error>>,
impl<M: Middleware + 'static, F: Foldable + 'static, __T0> IntoError<FoldableError<M, F>> for PartitionSnafu<__T0>where FoldableError<M, F>: Error + ErrorCompat, __T0: Into<Vec<M::Error>>,
source§fn into_error(self, error: Self::Source) -> FoldableError<M, F>
fn into_error(self, error: Self::Source) -> FoldableError<M, F>
Combine the information to produce the error
Auto Trait Implementations§
impl<M, F> RefUnwindSafe for FoldableError<M, F>where <F as Foldable>::Error: RefUnwindSafe, <M as Middleware>::Error: RefUnwindSafe,
impl<M, F> Send for FoldableError<M, F>where <F as Foldable>::Error: Send,
impl<M, F> Sync for FoldableError<M, F>where <F as Foldable>::Error: Sync,
impl<M, F> Unpin for FoldableError<M, F>where <F as Foldable>::Error: Unpin, <M as Middleware>::Error: Unpin,
impl<M, F> UnwindSafe for FoldableError<M, F>where <F as Foldable>::Error: UnwindSafe, <M as Middleware>::Error: UnwindSafe,
Blanket Implementations§
source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere T: Error + 'static,
source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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