pub struct AccountCidr {
pub name: String,
pub cidr: Ipv4Cidr,
}Expand description
Account CIDR
An IP range indicating the whitelisted IP address for connecting to the ATLAS FPS
Fields§
§name: String§cidr: Ipv4CidrMethods from Deref<Target = Ipv4Cidr>§
sourcepub fn iter(&self) -> InetIterator<Ipv4Addr>
pub fn iter(&self) -> InetIterator<Ipv4Addr>
Iterate over all addresses in the range. With IPv6 addresses this can produce really long iterations (up to 2128 addresses).
sourcepub fn first_address(&self) -> Ipv4Addr
pub fn first_address(&self) -> Ipv4Addr
first address in the network as plain address
sourcepub fn last_address(&self) -> Ipv4Addr
pub fn last_address(&self) -> Ipv4Addr
last address in the network as plain address
sourcepub fn network_length(&self) -> u8
pub fn network_length(&self) -> u8
length in bits of the shared prefix of the contained addresses
sourcepub fn is_host_address(&self) -> bool
pub fn is_host_address(&self) -> bool
whether network represents a single host address
Trait Implementations§
source§impl Clone for AccountCidr
impl Clone for AccountCidr
source§fn clone(&self) -> AccountCidr
fn clone(&self) -> AccountCidr
Returns a copy of the value. Read more
1.0.0 · 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 AccountCidr
impl Debug for AccountCidr
source§impl Deref for AccountCidr
impl Deref for AccountCidr
source§impl<'de> Deserialize<'de> for AccountCidr
impl<'de> Deserialize<'de> for AccountCidr
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountCidr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountCidr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for AccountCidr
impl PartialEq for AccountCidr
source§impl Serialize for AccountCidr
impl Serialize for AccountCidr
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AccountCidr
Auto Trait Implementations§
impl Freeze for AccountCidr
impl RefUnwindSafe for AccountCidr
impl Send for AccountCidr
impl Sync for AccountCidr
impl Unpin for AccountCidr
impl UnwindSafe for AccountCidr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)