pub struct ConnOptions {
pub backoff_duration: Duration,
pub retry_attempts: Option<usize>,
}Expand description
Options for the connection manager.
Fields§
§backoff_duration: DurationThe backoff duration for the underlying transport on reconnections.
retry_attempts: Option<usize>The maximum number of retry attempts. If None, the connection will retry indefinitely.
Trait Implementations§
Source§impl Clone for ConnOptions
impl Clone for ConnOptions
Source§fn clone(&self) -> ConnOptions
fn clone(&self) -> ConnOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnOptions
impl Debug for ConnOptions
Source§impl Default for ConnOptions
impl Default for ConnOptions
Source§impl From<&ConnOptions> for ExponentialBackoff
impl From<&ConnOptions> for ExponentialBackoff
Source§fn from(options: &ConnOptions) -> Self
fn from(options: &ConnOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnOptions
impl RefUnwindSafe for ConnOptions
impl Send for ConnOptions
impl Sync for ConnOptions
impl Unpin for ConnOptions
impl UnsafeUnpin for ConnOptions
impl UnwindSafe for ConnOptions
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