pub struct IpNetworks(/* private fields */);Expand description
A set of IP addresses and CIDR ranges.
Serialized as a list of strings such as "10.0.0.1" or "10.0.0.0/8". Entries that do not
parse as an address or a range are skipped while deserializing, like invalid glob patterns.
Implementations§
Trait Implementations§
Source§impl Clone for IpNetworks
impl Clone for IpNetworks
Source§fn clone(&self) -> IpNetworks
fn clone(&self) -> IpNetworks
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IpNetworks
impl Debug for IpNetworks
Source§impl Default for IpNetworks
impl Default for IpNetworks
Source§fn default() -> IpNetworks
fn default() -> IpNetworks
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IpNetworks
impl<'de> Deserialize<'de> for IpNetworks
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S: AsRef<str>> FromIterator<S> for IpNetworks
impl<S: AsRef<str>> FromIterator<S> for IpNetworks
Source§fn from_iter<I: IntoIterator<Item = S>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = S>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for IpNetworks
impl PartialEq for IpNetworks
Source§impl Serialize for IpNetworks
impl Serialize for IpNetworks
impl StructuralPartialEq for IpNetworks
Auto Trait Implementations§
impl Freeze for IpNetworks
impl RefUnwindSafe for IpNetworks
impl Send for IpNetworks
impl Sync for IpNetworks
impl Unpin for IpNetworks
impl UnsafeUnpin for IpNetworks
impl UnwindSafe for IpNetworks
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more