pub struct IpRange {
pub start_v4: Option<Ipv4Addr>,
pub start_v6: Option<Ipv6Addr>,
pub count: u128,
pub country: String,
}Expand description
A single allocation block parsed from a RIPE delegated statistics file.
For IPv4 blocks, start_v4 is Some and start_v6 is None.
For IPv6 blocks, start_v6 is Some and start_v4 is None.
count is the number of addresses in the block. For IPv6 lines, RIPE uses a
prefix length in the “count” field; this parser converts that prefix length
into an address count (2^(128-prefix_len)).
Fields§
§start_v4: Option<Ipv4Addr>§start_v6: Option<Ipv6Addr>§count: u128§country: StringTrait Implementations§
impl StructuralPartialEq for IpRange
Auto Trait Implementations§
impl Freeze for IpRange
impl RefUnwindSafe for IpRange
impl Send for IpRange
impl Sync for IpRange
impl Unpin for IpRange
impl UnwindSafe for IpRange
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