pub struct ClientConfig {
pub address: String,
pub connection_timeout: Duration,
pub operation_timeout: Duration,
pub response_timeout: Duration,
pub heartbeat_interval: Duration,
pub auto_reconnect: bool,
pub max_reconnect_attempts: u32,
pub reconnect_delay: Duration,
}Expand description
Client-specific configuration
Fields§
§address: StringTarget server address
connection_timeout: DurationTimeout for connection attempts
operation_timeout: DurationTimeout for sending a single message with Client::send
response_timeout: DurationTimeout for waiting for response messages
heartbeat_interval: DurationInterval for sending heartbeat messages
auto_reconnect: bool👎Deprecated since 1.3.0:
not applied: Client never reconnects; reconnect in your own code with Client::connect_with_config()
Whether to automatically reconnect on connection loss
Not implemented: Client never reconnects, whatever this is set to.
max_reconnect_attempts: u32👎Deprecated since 1.3.0:
not applied: Client never reconnects
Maximum number of reconnect attempts before giving up
Not implemented, see auto_reconnect.
reconnect_delay: Duration👎Deprecated since 1.3.0:
not applied: Client never reconnects
Delay between reconnect attempts
Not implemented, see auto_reconnect.
Implementations§
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§impl Debug for ClientConfig
impl Debug for ClientConfig
Source§impl Default for ClientConfig
impl Default for ClientConfig
Source§impl<'de> Deserialize<'de> for ClientConfig
impl<'de> Deserialize<'de> for ClientConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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