pub struct ReconnectSettings {
pub max_attempts: usize,
pub initial_delay_ms: u64,
pub max_delay_ms: u64,
pub use_exponential_backoff: bool,
}Expand description
Reconnection settings
Fields§
§max_attempts: usizeMaximum number of reconnection attempts
initial_delay_ms: u64Initial delay between reconnection attempts (ms)
max_delay_ms: u64Maximum delay between reconnection attempts (ms)
use_exponential_backoff: boolWhether to use exponential backoff
Trait Implementations§
Source§impl Clone for ReconnectSettings
impl Clone for ReconnectSettings
Source§fn clone(&self) -> ReconnectSettings
fn clone(&self) -> ReconnectSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReconnectSettings
impl Debug for ReconnectSettings
Source§impl Default for ReconnectSettings
impl Default for ReconnectSettings
Source§impl<'de> Deserialize<'de> for ReconnectSettings
impl<'de> Deserialize<'de> for ReconnectSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReconnectSettings
impl RefUnwindSafe for ReconnectSettings
impl Send for ReconnectSettings
impl Sync for ReconnectSettings
impl Unpin for ReconnectSettings
impl UnwindSafe for ReconnectSettings
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