Struct nix::sys::socket::Ipv4Addr [−][src]
pub struct Ipv4Addr(pub in_addr);
Methods
impl Ipv4Addr[src]
impl Ipv4Addrpub fn new(a: u8, b: u8, c: u8, d: u8) -> Ipv4Addr[src]
pub fn new(a: u8, b: u8, c: u8, d: u8) -> Ipv4Addrpub fn from_std(std: &Ipv4Addr) -> Ipv4Addr[src]
pub fn from_std(std: &Ipv4Addr) -> Ipv4Addrpub fn any() -> Ipv4Addr[src]
pub fn any() -> Ipv4Addrpub fn octets(&self) -> [u8; 4][src]
pub fn octets(&self) -> [u8; 4]pub fn to_std(&self) -> Ipv4Addr[src]
pub fn to_std(&self) -> Ipv4AddrTrait Implementations
impl Copy for Ipv4Addr[src]
impl Copy for Ipv4Addrimpl PartialEq for Ipv4Addr[src]
impl PartialEq for Ipv4Addrfn eq(&self, other: &Ipv4Addr) -> bool[src]
fn eq(&self, other: &Ipv4Addr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Ipv4Addr[src]
impl Eq for Ipv4Addrimpl Hash for Ipv4Addr[src]
impl Hash for Ipv4Addrfn hash<H: Hasher>(&self, s: &mut H)[src]
fn hash<H: Hasher>(&self, s: &mut H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Clone for Ipv4Addr[src]
impl Clone for Ipv4Addrfn clone(&self) -> Ipv4Addr[src]
fn clone(&self) -> Ipv4AddrReturns 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 Display for Ipv4Addr[src]
impl Display for Ipv4Addr