Enum mmids_core::net::IpAddress [−][src]
Expand description
Enumeration to make handling ip addresses vs subnets easier
Variants
Exact(Ipv4Addr)
Tuple Fields
0: Ipv4Addr
Cidr(Ipv4Cidr)
Tuple Fields
0: Ipv4Cidr
Implementations
Checks if the other exact ip address is a match for the current ip address specification. An address is a match if the current ip address is an exact one and both are exactly equal, or if the current ip address is a CIDR subnet mask and the other ip address is contained within.
pub fn parse_comma_delimited_list(
input: Option<&String>
) -> Result<Vec<IpAddress>, IpAddressParseError>
pub fn parse_comma_delimited_list(
input: Option<&String>
) -> Result<Vec<IpAddress>, IpAddressParseError>
Attempts to parse a string supposedly containing a comma delimited list of ip addresses and cidr values. An empty string will return an empty collection of ips.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IpAddress
impl UnwindSafe for IpAddress
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more