pub struct Inet {
pub family: NetFamily,
pub bits: u8,
pub addr: [u8; 16],
}Expand description
A value of inet or cidr. The bytes of addr after the size of the family are 0.
Fields§
§family: NetFamily§bits: u8The length of the network part, up to NetFamily::max_bits.
addr: [u8; 16]The address in network byte order.
Implementations§
Trait Implementations§
impl Copy for Inet
impl Eq for Inet
impl StructuralPartialEq for Inet
Auto Trait Implementations§
impl Freeze for Inet
impl RefUnwindSafe for Inet
impl Send for Inet
impl Sync for Inet
impl Unpin for Inet
impl UnsafeUnpin for Inet
impl UnwindSafe for Inet
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