Skip to main content

Module config

Module config 

Source
Expand description

Provides configuration to the system and the application.

Macrosยง

eui48_from_env
Reads an eui48 at compile time from the given environment variable, produces an [u8; 6], matched to the endianness of the target.
i8_from_env_or
Reads an i8 at compile time from the given environment variable, with a default.
i16_from_env_or
Reads an i16 at compile time from the given environment variable, with a default.
i32_from_env_or
Reads an i32 at compile time from the given environment variable, with a default.
i64_from_env_or
Reads an i64 at compile time from the given environment variable, with a default.
ipv4_addr_from_env
Reads an IPv4 address at compile time from the given environment variable, produces an Ipv4Addr.
ipv4_addr_from_env_or
Reads an IPv4 address at compile time from the given environment variable, produces an Ipv4Addr.
ipv6_addr_from_env
Reads an IPv6 address at compile time from the given environment variable, produces an Ipv6Addr.
ipv6_addr_from_env_or
Reads an IPv6 address at compile time from the given environment variable, produces an Ipv6Addr.
str_from_env
Reads a value at compile time from the given environment variable.
str_from_env_or
Reads a value at compile time from the given environment variable, with a default.
u8_from_env_or
Reads a u8 at compile time from the given environment variable, with a default.
u16_from_env_or
Reads a u16 at compile time from the given environment variable, with a default.
u32_from_env_or
Reads a u32 at compile time from the given environment variable, with a default.
u64_from_env_or
Reads a u64 at compile time from the given environment variable, with a default.
usize_from_env_or
Reads a usize at compile time from the given environment variable, with a default.