Struct nix::sys::socket::Ipv4Addr
[−]
[src]
pub struct Ipv4Addr(pub in_addr);
Methods
impl Ipv4Addr
[src]
fn new(a: u8, b: u8, c: u8, d: u8) -> Ipv4Addr
fn from_std(std: &Ipv4Addr) -> Ipv4Addr
fn any() -> Ipv4Addr
fn octets(&self) -> [u8; 4]
fn to_std(&self) -> Ipv4Addr
Trait Implementations
impl Copy for Ipv4Addr
[src]
impl PartialEq for Ipv4Addr
[src]
fn eq(&self, other: &Ipv4Addr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Ipv4Addr
[src]
impl Hash for Ipv4Addr
[src]
fn hash<H: Hasher>(&self, s: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Clone for Ipv4Addr
[src]
fn clone(&self) -> Ipv4Addr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more