INNER CODE UNIT · Rust
retry_timeout
pbeets/rithmic-rs · src/config.rs:696
pub fn retry_timeout(self, timeout: Duration) -> Self {
self.connect_total_timeout(timeout)
}
/// Set the application version sent at login. Required.
pub fn app_version(mut self, app_version: impl Into<String>) -> Self {
self.app_version = Some(app_version.into());
self
}
/// Set the capacity of each plant's subscription broadcast channel.
///
/// Every plant allocates its channel up front, when it connects. Tokio
/// rounds the capacity up to the next power of two and allocates every
/// slot eagerly, and each slot holds a
/// [`RithmicResponse`](crate::RithmicResponse) of about 1.3 KB. The default
/// of 10,000 becomes 16,384 slots, about 22 MB per plant (the repository
/// plant defaults to 64). Lower the capacity to save memory when you run