pub struct TitanTcpClientBlockingConfig {
pub base_reconnect_interval: Duration,
pub max_reconnect_interval: Duration,
pub max_reconnect_attempts: Option<u32>,
pub connection_timeout: Duration,
pub read_buffer_capacity: usize,
pub max_buffer_size: usize,
pub ping_interval: Duration,
pub pong_timeout: Duration,
}Expand description
Configuration for TCP client reconnection.
Fields§
§base_reconnect_interval: DurationBase duration for reconnect interval (will be used with exponential backoff)
max_reconnect_interval: DurationMaximum reconnect interval (cap for exponential backoff)
max_reconnect_attempts: Option<u32>Maximum number of reconnection attempts.
Use None for unlimited attempts.
connection_timeout: DurationConnection timeout.
read_buffer_capacity: usizeInitial capacity of the read buffer (in bytes)
max_buffer_size: usizeMaximum allowed size for the read buffer (in bytes)
ping_interval: DurationInterval between ping messages
pong_timeout: DurationTimeout for waiting for pong responses
Trait Implementations§
Source§impl Clone for TcpClientConfig
impl Clone for TcpClientConfig
Source§fn clone(&self) -> TcpClientConfig
fn clone(&self) -> TcpClientConfig
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 TcpClientConfig
impl Debug for TcpClientConfig
Auto Trait Implementations§
impl Freeze for TcpClientConfig
impl RefUnwindSafe for TcpClientConfig
impl Send for TcpClientConfig
impl Sync for TcpClientConfig
impl Unpin for TcpClientConfig
impl UnwindSafe for TcpClientConfig
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