pub struct ReconnectPolicy {
pub initial_delay: Duration,
pub max_delay: Duration,
pub multiplier: u32,
}Expand description
Bounded exponential backoff between reconnect attempts. The delay doubles (by
multiplier) after each failed attempt, capped at max_delay - but the number of attempts
itself is unbounded: a charge point should keep trying to reach its CSMS indefinitely
rather than giving up after N tries.
Fields§
§initial_delay: Duration§max_delay: Duration§multiplier: u32Trait Implementations§
Source§impl Clone for ReconnectPolicy
impl Clone for ReconnectPolicy
Source§fn clone(&self) -> ReconnectPolicy
fn clone(&self) -> ReconnectPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReconnectPolicy
Source§impl Debug for ReconnectPolicy
impl Debug for ReconnectPolicy
Source§impl Default for ReconnectPolicy
impl Default for ReconnectPolicy
impl Eq for ReconnectPolicy
Source§impl PartialEq for ReconnectPolicy
impl PartialEq for ReconnectPolicy
impl StructuralPartialEq for ReconnectPolicy
Auto Trait Implementations§
impl Freeze for ReconnectPolicy
impl RefUnwindSafe for ReconnectPolicy
impl Send for ReconnectPolicy
impl Sync for ReconnectPolicy
impl Unpin for ReconnectPolicy
impl UnsafeUnpin for ReconnectPolicy
impl UnwindSafe for ReconnectPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more