pub struct IpNetwork {
pub addr: IpAddr,
pub prefix: u8,
}Expand description
IP networks address for network interface.
It is returned by NetworkData::ip_networks.
Fields§
§addr: IpAddrThe IP of the network interface.
prefix: u8The netmask, prefix of the IP address.
Trait Implementations§
impl Copy for IpNetwork
impl Eq for IpNetwork
Source§impl Ord for IpNetwork
impl Ord for IpNetwork
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for IpNetwork
impl PartialOrd for IpNetwork
impl StructuralPartialEq for IpNetwork
Auto Trait Implementations§
impl Freeze for IpNetwork
impl RefUnwindSafe for IpNetwork
impl Send for IpNetwork
impl Sync for IpNetwork
impl Unpin for IpNetwork
impl UnsafeUnpin for IpNetwork
impl UnwindSafe for IpNetwork
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