pub struct ConnectionConfig {
pub max_packet_size: u16,
pub max_conn_attempts: usize,
pub max_idle_timeout: Duration,
pub initial_timeout: Duration,
pub min_timeout: Duration,
pub max_timeout: Duration,
pub target_delay: Duration,
}
Fields§
§max_packet_size: u16
§max_conn_attempts: usize
The maximum number of connection attempts to make before giving up. Note: if the max_idle_timeout is set too low, then the connection may time out before all these attempts can be executed.
max_idle_timeout: Duration
§initial_timeout: Duration
§min_timeout: Duration
§max_timeout: Duration
§target_delay: Duration
Trait Implementations§
Source§impl Clone for ConnectionConfig
impl Clone for ConnectionConfig
Source§fn clone(&self) -> ConnectionConfig
fn clone(&self) -> ConnectionConfig
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 ConnectionConfig
impl Debug for ConnectionConfig
Source§impl Default for ConnectionConfig
impl Default for ConnectionConfig
Source§impl From<ConnectionConfig> for Config
impl From<ConnectionConfig> for Config
Source§fn from(value: ConnectionConfig) -> Self
fn from(value: ConnectionConfig) -> Self
Converts to this type from the input type.
impl Copy for ConnectionConfig
Auto Trait Implementations§
impl Freeze for ConnectionConfig
impl RefUnwindSafe for ConnectionConfig
impl Send for ConnectionConfig
impl Sync for ConnectionConfig
impl Unpin for ConnectionConfig
impl UnwindSafe for ConnectionConfig
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