IntoErrorIterator

Trait IntoErrorIterator 

Source
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§

Source

fn error_chain(&self) -> ErrorIterator<'_>

Creates an iterator over Error::sources

Provided Methods§

Source

fn serializable_copy(&self) -> SerializableError

Copies and flattens the error stack into a SerializableError

Source

fn find_extension<E: Extension>(&self) -> Option<Arc<E>>

Available on crate feature 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.

Implementors§

Source§

impl<T> IntoErrorIterator for T
where T: Error + 'static,