pub trait AsIpv4Addrs {
    fn as_ipv4_addrs(&self) -> Result<HashSet<Ipv4Addr>>;
}
Expand description

This trait allows for parsing an input into a set of one or multiple Ipv4Addr.

Required Methods

Implementations on Foreign Types

Supports one address or multiple addresses separated by ,. For example: “127.0.0.1,127.0.0.2”

Support slice. Example: &[“127.0.0.1”, “127.0.0.2”]

Optimization for zero sized/empty values, as () will never take up any space or evaluate to anything, helpful in contexts where we just want an empty value.

Implementors