INNER CODE UNIT · Rust
request_timeout
pbeets/rithmic-rs · src/config.rs:623
pub fn request_timeout(mut self, request_timeout: Duration) -> Self {
self.request_timeout = if request_timeout.is_zero() {
DEFAULT_REQUEST_TIMEOUT
} else {
request_timeout
};
self
}
/// Set how long one connection attempt may take. The default is 5
/// seconds; `0` keeps it.
///
/// An attempt covers DNS, TCP, TLS and the WebSocket upgrade. Raise it
/// when the server is far away, for example Australia to Chicago. To limit
/// all attempts together, use
/// [`connect_total_timeout`](Self::connect_total_timeout).
///