Trait process_results::IterResult [−][src]
pub trait IterResult: Iterator<Item = Result<Self::Ok, Self::Error>> + Sized { type Ok; type Error; fn failfast(self) -> Fallible<Self, Option<Self::Error>> { ... } fn ignore(self) -> Fallible<Self, Ignore> { ... } fn accumulate(self) -> Fallible<Self, Vec<Self::Error>> { ... } fn fallible<C: ErrorCollector<Self::Error>>(self) -> Fallible<Self, C> { ... } fn with_collector<C: ErrorCollector<Self::Error>>(
self,
collector: C
) -> Fallible<Self, C> { ... } }
Expand description
An extension trait implemented for all iterators of Result types.
Associated Types
Provided methods
Produces a version of Fallible that stops iterating upon encountering the 1st error.
Produces a version of Fallible that keeps iterating and ignores all errors.
fn accumulate(self) -> Fallible<Self, Vec<Self::Error>>
fn accumulate(self) -> Fallible<Self, Vec<Self::Error>>
Produces a version of Fallible that keeps iterating and stores all errors in a Vec.
fn fallible<C: ErrorCollector<Self::Error>>(self) -> Fallible<Self, C>
fn fallible<C: ErrorCollector<Self::Error>>(self) -> Fallible<Self, C>
Produces a version of Fallible with a custom type of ErrorCollector
fn with_collector<C: ErrorCollector<Self::Error>>(
self,
collector: C
) -> Fallible<Self, C>
fn with_collector<C: ErrorCollector<Self::Error>>(
self,
collector: C
) -> Fallible<Self, C>
Produces a version of Fallible with an existing value of ErrorCollector