pub struct TitanTcpClientConfig {
pub max_retries: Option<u32>,
pub retry_delay: Duration,
pub read_buffer_capacity: usize,
pub max_buffer_size: usize,
pub ping_interval: Duration,
pub pong_timeout: Duration,
}Expand description
Settings for reconnecting.
Fields§
§max_retries: Option<u32>Maximum number of reconnect attempts. Use None for unlimited retries.
retry_delay: DurationDelay between reconnect attempts.
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§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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