pub struct ConfigBuilder(/* private fields */);Expand description
Builder of Config.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn total_timeout(self, value: Duration) -> Self
pub fn total_timeout(self, value: Duration) -> Self
Upper bound of one REST call.
Sourcepub fn http_client(self, value: Client) -> Self
pub fn http_client(self, value: Client) -> Self
Your own reqwest::Client for REST (its own timeouts apply).
Sourcepub fn ws_connector(self, value: impl WsConnector) -> Self
pub fn ws_connector(self, value: impl WsConnector) -> Self
Your own transport for WebSocket dials.
Sourcepub fn max_retries(self, value: u32) -> Self
pub fn max_retries(self, value: u32) -> Self
Retries for 5xx, network errors and attempt timeouts.
Sourcepub fn retry_base_delay(self, value: Duration) -> Self
pub fn retry_base_delay(self, value: Duration) -> Self
First backoff delay.
Sourcepub fn retry_max_delay(self, value: Duration) -> Self
pub fn retry_max_delay(self, value: Duration) -> Self
Largest backoff delay.
Sourcepub fn retry_on_burst(self, value: RetryOnBurst) -> Self
pub fn retry_on_burst(self, value: RetryOnBurst) -> Self
Behaviour on a 429 burst.
Sourcepub fn burst_wait(self, value: Duration) -> Self
pub fn burst_wait(self, value: Duration) -> Self
Wait on a 429 burst without Retry-After.
Sourcepub fn max_response_bytes(self, value: usize) -> Self
pub fn max_response_bytes(self, value: usize) -> Self
Largest REST response body read.
Sourcepub fn ping_interval(self, value: Duration) -> Self
pub fn ping_interval(self, value: Duration) -> Self
Interval of the stream ping.
Sourcepub fn watchdog_timeout(self, value: Duration) -> Self
pub fn watchdog_timeout(self, value: Duration) -> Self
Pong watchdog of streams.
Sourcepub fn rotation_interval(self, value: Duration) -> Self
pub fn rotation_interval(self, value: Duration) -> Self
Connection renewal of streams.
Sourcepub fn reconnect_base_delay(self, value: Duration) -> Self
pub fn reconnect_base_delay(self, value: Duration) -> Self
First reconnect delay.
Sourcepub fn reconnect_max_delay(self, value: Duration) -> Self
pub fn reconnect_max_delay(self, value: Duration) -> Self
Largest reconnect delay.
Sourcepub fn long_backoff(self, value: Duration) -> Self
pub fn long_backoff(self, value: Duration) -> Self
Wait after a dial refused for the connection limit.
Sourcepub fn quota_reconnect(self, value: bool) -> Self
pub fn quota_reconnect(self, value: bool) -> Self
Redial while the WebSocket quota is used up (default true).
Sourcepub fn quota_reconnect_interval(self, value: Duration) -> Self
pub fn quota_reconnect_interval(self, value: Duration) -> Self
Interval of quota redials.
Sourcepub fn search_failed_threshold(self, value: u32) -> Self
pub fn search_failed_threshold(self, value: u32) -> Self
SEARCH_FAILED in a row before on_error.
Sourcepub fn dedupe_cache_size(self, value: usize) -> Self
pub fn dedupe_cache_size(self, value: usize) -> Self
Entries of the duplicate filter of each stream.
Sourcepub fn max_message_bytes(self, value: usize) -> Self
pub fn max_message_bytes(self, value: usize) -> Self
Largest incoming stream message (at least 16 MiB).
Sourcepub fn connect_timeout(self, value: Duration) -> Self
pub fn connect_timeout(self, value: Duration) -> Self
Timeout of the WebSocket dial.