INNER CODE UNIT · Rust
app_name
pbeets/rithmic-rs · src/config.rs:609
pub fn app_name(mut self, app_name: impl Into<String>) -> Self {
self.app_name = Some(app_name.into());
self
}
/// Deprecated and has no effect: the library does not time out requests.
/// Wrap the call in [`tokio::time::timeout`] to set a deadline of your
/// own. The value is still recorded on the config and still ignored. Kept
/// so existing code keeps compiling.
#[deprecated(
since = "3.1.0",
note = "the library no longer times out requests; wrap the call in tokio::time::timeout"
)]
#[allow(deprecated)]
pub fn request_timeout(mut self, request_timeout: Duration) -> Self {
self.request_timeout = if request_timeout.is_zero() {
DEFAULT_REQUEST_TIMEOUT
} else {