Enum smoltcp::wire::IpAddress
[−]
[src]
pub enum IpAddress { Unspecified, Ipv4(Ipv4Address), }
An internetworking address.
Variants
Unspecified
An unspecified address. May be used as a placeholder for storage where the address is not assigned yet.
Ipv4(Ipv4Address)
An IPv4 address.
Methods
impl Address
[src]
fn v4(a0: u8, a1: u8, a2: u8, a3: u8) -> Address
Create an address wrapping an IPv4 address with the given octets.
fn is_unicast(&self) -> bool
Query whether the address is a valid unicast address.
fn is_unspecified(&self) -> bool
Query whether the address falls into the "unspecified" range.
Trait Implementations
impl Debug for Address
[src]
impl PartialEq for Address
[src]
fn eq(&self, __arg_0: &Address) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Address) -> bool
This method tests for !=
.
impl Eq for Address
[src]
impl PartialOrd for Address
[src]
fn partial_cmp(&self, __arg_0: &Address) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Address) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Address) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Address) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Address) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Address
[src]
fn cmp(&self, __arg_0: &Address) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Clone for Address
[src]
fn clone(&self) -> Address
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
impl Copy for Address
[src]
impl Default for Address
[src]
impl From<Ipv4Address> for Address
[src]
fn from(addr: Ipv4Address) -> Self
Performs the conversion.