Enum nix::sys::socket::IpAddr [−][src]
Variants
V4(Ipv4Addr)V6(Ipv6Addr)Methods
impl IpAddr[src]
impl IpAddrpub fn new_v4(a: u8, b: u8, c: u8, d: u8) -> IpAddr[src]
pub fn new_v4(a: u8, b: u8, c: u8, d: u8) -> IpAddrCreate a new IpAddr that contains an IPv4 address.
The result will represent the IP address a.b.c.d
pub fn new_v6(
a: u16,
b: u16,
c: u16,
d: u16,
e: u16,
f: u16,
g: u16,
h: u16
) -> IpAddr[src]
pub fn new_v6(
a: u16,
b: u16,
c: u16,
d: u16,
e: u16,
f: u16,
g: u16,
h: u16
) -> IpAddrCreate a new IpAddr that contains an IPv6 address.
The result will represent the IP address a:b:c:d:e:f
Trait Implementations
impl Clone for IpAddr[src]
impl Clone for IpAddrfn clone(&self) -> IpAddr[src]
fn clone(&self) -> IpAddrReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for IpAddr[src]
impl Copy for IpAddrimpl Display for IpAddr[src]
impl Display for IpAddrfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Debug for IpAddr[src]
impl Debug for IpAddr