Skip to main content

Backoff

Trait Backoff 

Source
pub trait Backoff: Stream<Item = Duration> + Unpin { }
Expand description

Helper trait alias for backoff streams. We define any stream that yields Durations as a backoff

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> Backoff for T
where T: Stream<Item = Duration> + Unpin,