#[repr(C, align(4))]pub union IpAddress {
pub addr: [u32; 4],
pub v4: Ipv4Address,
pub v6: Ipv6Address,
}Expand description
IP Address
A union type over the different IP addresses available. Alignment is always fixed to 4-bytes. Note that trailing bytes might be random, so no comparison functions are derived.
Fields§
§addr: [u32; 4]§v4: Ipv4Address§v6: Ipv6AddressTrait Implementations§
Auto Trait Implementations§
impl Freeze for IpAddress
impl RefUnwindSafe for IpAddress
impl Send for IpAddress
impl Sync for IpAddress
impl Unpin for IpAddress
impl UnwindSafe for IpAddress
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