Struct TransportConfig
pub struct TransportConfig {
pub send_queue_depth: usize,
pub event_channel_capacity: usize,
pub connect_timeout_secs: u64,
pub setup_timeout_secs: u64,
pub max_reconnect_attempts: u32,
pub reconnect_base_delay_ms: u32,
pub reconnect_max_delay_ms: u32,
}Expand description
Configuration for the transport layer.
Fields§
§send_queue_depth: usizeDepth of the command send queue.
event_channel_capacity: usizeCapacity of the event broadcast channel.
connect_timeout_secs: u64WebSocket connect timeout in seconds.
setup_timeout_secs: u64Setup handshake timeout in seconds.
max_reconnect_attempts: u32Maximum reconnection attempts before giving up.
reconnect_base_delay_ms: u32Base delay for exponential backoff (ms).
reconnect_max_delay_ms: u32Maximum delay for exponential backoff (ms).
Trait Implementations§
§impl Clone for TransportConfig
impl Clone for TransportConfig
§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
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 more§impl Debug for TransportConfig
impl Debug for TransportConfig
§impl Default for TransportConfig
impl Default for TransportConfig
§fn default() -> TransportConfig
fn default() -> TransportConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnwindSafe for TransportConfig
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