pub struct NetworkV4<'a> { /* private fields */ }
Expand description
Information on an IPv4 network.
See Network
.
Implementations§
source§impl<'a> NetworkV4<'a>
impl<'a> NetworkV4<'a>
sourcepub fn country_code(&self) -> &'a str
pub fn country_code(&self) -> &'a str
sourcepub fn asn(&self) -> u32
pub fn asn(&self) -> u32
See Network::asn
.
sourcepub fn is_anonymous_proxy(&self) -> bool
pub fn is_anonymous_proxy(&self) -> bool
sourcepub fn is_satellite_provider(&self) -> bool
pub fn is_satellite_provider(&self) -> bool
sourcepub fn is_anycast(&self) -> bool
pub fn is_anycast(&self) -> bool
See Network::is_anycast
.
sourcepub fn is_drop(&self) -> bool
pub fn is_drop(&self) -> bool
See Network::is_drop
.
sourcepub fn addrs(&self) -> Ipv4Net
pub fn addrs(&self) -> Ipv4Net
See Network::addrs
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NetworkV4<'a>
impl<'a> RefUnwindSafe for NetworkV4<'a>
impl<'a> Send for NetworkV4<'a>
impl<'a> Sync for NetworkV4<'a>
impl<'a> Unpin for NetworkV4<'a>
impl<'a> UnwindSafe for NetworkV4<'a>
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