pub trait IntoErrorIterator {
// Required method
fn error_chain(&self) -> ErrorIterator<'_> ⓘ;
// Provided methods
fn serializable_copy(&self) -> SerializableError { ... }
fn find_extension<E: Extension>(&self) -> Option<Arc<E>> { ... }
}Required Methods§
Sourcefn error_chain(&self) -> ErrorIterator<'_> ⓘ
fn error_chain(&self) -> ErrorIterator<'_> ⓘ
Creates an iterator over Error::sources
Provided Methods§
Sourcefn serializable_copy(&self) -> SerializableError
fn serializable_copy(&self) -> SerializableError
Copies and flattens the error stack into a SerializableError
Sourcefn find_extension<E: Extension>(&self) -> Option<Arc<E>>
Available on crate feature extensions only.
fn find_extension<E: Extension>(&self) -> Option<Arc<E>>
extensions only.Retrieves the most recent instance of a given extension type from the error stack
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.