Skip to main content

Crate arminius_lib_config

Crate arminius_lib_config 

Source
Expand description

Arminius Configuration

Structs§

ArminiusConfig
The configuration for an instance of Arminius

Enums§

ArminiusConfigurationError
Errors that can occur when reading Arminius configuration
IpAddrClass
Classifies an IP address as IPv4 or IPv6

Functions§

get_random_port 🔒
Gets an open port. Can theoretically lead to a data race. There is no guarantee that the port will stay free between calling this function, and assigning it to some process. In practice, the Unix bind call assigns these randomly allocated ports semi-sequentially from the ephemeral range, in which there are 28000 to choose between. So this race condition probably definitely won’t be happening.
try_read_env
Try to read a required environment variable, parsing it to the given type.
try_read_opt_env
Try to read an optional environment variable.