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: IpAddr
The IP of the network interface.
prefix: u8
The netmask, prefix of the IP address.
Trait Implementations§
Source§impl Ord for IpNetwork
impl Ord for IpNetwork
Source§impl PartialOrd for IpNetwork
impl PartialOrd for IpNetwork
impl Copy for IpNetwork
impl Eq 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 18 bytes