Function retrying::override_by_env
source · pub fn override_by_env<T: FromStr>(original: T, prefix: &str, name: &str) -> T
Expand description
read retrying environment using prefix
and name
and return the value from environment if it exists and has correct format.
Otherwise method prints error to stderr and returns original
value.
This method is a part of developer API and should not be used directly (it is public because retry
macros uses it together with envs_prefix
configuration option).