#[repr(C)]pub struct IpAddressAbi {
pub family: u32,
pub address: [u8; 16],
}Expand description
Plain-data payload mirror of IpAddress: same size (20 bytes) and
alignment (4) as the #[repr(C)] enum, but every byte pattern is a
valid value. Layout: family at offset 0 (a u32 tag), address at
offset 4 (16 bytes). family is 0 for IPv4 and 1 for IPv6; any other
value is rejected with InvalidArgument, as are non-zero bytes in the
trailing 12 address bytes of an IPv4 address.
Fields§
§family: u32§address: [u8; 16]Trait Implementations§
Source§impl Clone for IpAddressAbi
impl Clone for IpAddressAbi
Source§fn clone(&self) -> IpAddressAbi
fn clone(&self) -> IpAddressAbi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IpAddressAbi
impl Debug for IpAddressAbi
Source§impl Default for IpAddressAbi
impl Default for IpAddressAbi
Source§fn default() -> IpAddressAbi
fn default() -> IpAddressAbi
Returns the “default value” for a type. Read more
Source§impl From<IpAddress> for IpAddressAbi
impl From<IpAddress> for IpAddressAbi
Source§impl Hash for IpAddressAbi
impl Hash for IpAddressAbi
Source§impl Ord for IpAddressAbi
impl Ord for IpAddressAbi
Source§fn cmp(&self, other: &IpAddressAbi) -> Ordering
fn cmp(&self, other: &IpAddressAbi) -> Ordering
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
Source§impl PartialEq for IpAddressAbi
impl PartialEq for IpAddressAbi
Source§fn eq(&self, other: &IpAddressAbi) -> bool
fn eq(&self, other: &IpAddressAbi) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IpAddressAbi
impl PartialOrd for IpAddressAbi
Source§impl TryFrom<IpAddressAbi> for IpAddress
impl TryFrom<IpAddressAbi> for IpAddress
impl Copy for IpAddressAbi
impl Eq for IpAddressAbi
impl PlainData for IpAddressAbi
impl StructuralPartialEq for IpAddressAbi
Auto Trait Implementations§
impl Freeze for IpAddressAbi
impl RefUnwindSafe for IpAddressAbi
impl Send for IpAddressAbi
impl Sync for IpAddressAbi
impl Unpin for IpAddressAbi
impl UnsafeUnpin for IpAddressAbi
impl UnwindSafe for IpAddressAbi
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