pub struct NetworkConfig {
pub connect_timeout_ms: u64,
pub read_timeout_ms: u64,
pub write_timeout_ms: u64,
pub keepalive_interval_ms: u64,
pub max_retries: u32,
pub retry_delay_ms: u64,
pub exponential_backoff: bool,
pub max_retry_delay_ms: u64,
}Expand description
Network configuration
Fields§
§connect_timeout_ms: u64Connection timeout in milliseconds
read_timeout_ms: u64Read timeout in milliseconds
write_timeout_ms: u64Write timeout in milliseconds
keepalive_interval_ms: u64Keepalive interval in milliseconds
max_retries: u32Maximum number of retry attempts
retry_delay_ms: u64Initial delay between retries in milliseconds
exponential_backoff: boolWhether to use exponential backoff for retries
max_retry_delay_ms: u64Maximum retry delay in milliseconds
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkConfig
impl Debug for NetworkConfig
Source§impl<'de> Deserialize<'de> for NetworkConfig
impl<'de> Deserialize<'de> for NetworkConfig
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 NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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