Struct bililive_core::retry::RetryConfig [−][src]
pub struct RetryConfig(_);Expand description
The configuration for retry behavior.
Implementations
Create a retry configuration with given duration_generator.
duration_generator is a function that returns a duration iterator.
Each item yielded by the iterator indicates the delay time before next connection attempt after a disconnection occurs.
If None is returned, the stream fails.
The default implementation uses BEBIterator.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for RetryConfig
impl Send for RetryConfig
impl Sync for RetryConfig
impl Unpin for RetryConfig
impl !UnwindSafe for RetryConfig
Blanket Implementations
Mutably borrows from an owned value. Read more