RetryIter
RetryIter crate adds retry support for all std::iter::Iterator types. It does it by implementing the crate's IntoRetryIter for all std::iter::Iterator. In addition to retries support, the main feature of this crate is to preserve the iterator items during std::future::Future cancellation in asynchronous processing. It is explained with example in Crate's Main Feature section.
Documentation
Documentation of this crate available at doc.rs
Usage
Add this to your Cargo.toml:
[]
= "0.4"
Example
use ;
;
let a = vec!;
// Initializing retryiter with retry count 1.
// Also defined the error that can occur in while processing the item.
let mut iter = a.into_iter.;
for item in &mut iter
assert_eq!
License
This project is licensed under the MIT license.