Expand description
Arminius Configuration
Structs§
- Arminius
Config - The configuration for an instance of Arminius
Enums§
- Arminius
Configuration Error - Errors that can occur when reading Arminius configuration
- IpAddr
Class - 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.