http_acl::utils

Trait IntoIpRange

source
pub trait IntoIpRange {
    // Required method
    fn into_range(self) -> Option<RangeInclusive<IpAddr>>;

    // Provided method
    fn validate(
        ip_range: RangeInclusive<IpAddr>,
    ) -> Option<RangeInclusive<IpAddr>> { ... }
}
Expand description

Converts a type into an IP range.

Required Methods§

source

fn into_range(self) -> Option<RangeInclusive<IpAddr>>

Converts the type into an IP range.

Provided Methods§

source

fn validate(ip_range: RangeInclusive<IpAddr>) -> Option<RangeInclusive<IpAddr>>

Validates the IP range.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoIpRange for (IpAddr, IpAddr)

source§

impl IntoIpRange for RangeInclusive<IpAddr>

Implementors§