pub struct SessionConfig {Show 13 fields
pub auto_reconnect: bool,
pub max_reconnect_attempts: u32,
pub reconnect_delay_ms: u64,
pub max_reconnect_delay_ms: u64,
pub reconnect_backoff: f64,
pub connection_timeout_ms: u64,
pub heartbeat_interval_ms: u64,
pub heartbeat_timeout_ms: u64,
pub session_timeout: Duration,
pub request_timeout: Duration,
pub max_concurrent_requests: u32,
pub enable_compression: bool,
pub buffer_size: usize,
}
Expand description
Session configuration
Fields§
§auto_reconnect: bool
Whether to enable automatic reconnection
max_reconnect_attempts: u32
Maximum number of reconnection attempts
reconnect_delay_ms: u64
Initial reconnection delay in milliseconds
max_reconnect_delay_ms: u64
Maximum reconnection delay in milliseconds
reconnect_backoff: f64
Reconnection backoff multiplier
connection_timeout_ms: u64
Connection timeout in milliseconds
heartbeat_interval_ms: u64
Heartbeat interval in milliseconds (0 to disable)
heartbeat_timeout_ms: u64
Heartbeat timeout in milliseconds
session_timeout: Duration
Session timeout duration
request_timeout: Duration
Request timeout duration
max_concurrent_requests: u32
Maximum concurrent requests
enable_compression: bool
Enable compression
buffer_size: usize
Buffer size for operations
Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§fn clone(&self) -> SessionConfig
fn clone(&self) -> SessionConfig
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 SessionConfig
impl Debug for SessionConfig
Auto Trait Implementations§
impl Freeze for SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnwindSafe for SessionConfig
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