pub fn limits_from_toml_path(path: &str) -> Result<BrokerLimits, ConfigError>Expand description
Reads the [bcs] section of a limits file on disk.
Use it when you tune the limits for your account without recompiling. Same as
limits_from_toml_str after reading the file.
§Errors
[brokapi_core::ConfigError::Message] when the file cannot be read (the message names the path),
and for every reason limits_from_toml_str lists.
§Examples
use brokapi_bcs::limits::limits_from_toml_path;
let err = limits_from_toml_path("/definitely/not/here.toml").unwrap_err();
assert!(err.to_string().contains("/definitely/not/here.toml"));