Struct interfaces::Address [−][src]
pub struct Address {
pub kind: Kind,
pub addr: Option<SocketAddr>,
pub mask: Option<SocketAddr>,
pub hop: Option<NextHop>,
}This structure represents a single address for a given interface.
Fields
kind: Kind
The kind of address this is (e.g. IPv4).
addr: Option<SocketAddr>
The underlying socket address, if it applies.
mask: Option<SocketAddr>
The netmask of this interface address, if it applies.
hop: Option<NextHop>
The broadcast address or destination address, if it applies.
Trait Implementations
impl Debug for Address[src]
impl Debug for Addressfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Address[src]
impl Clone for Addressfn clone(&self) -> Address[src]
fn clone(&self) -> AddressReturns 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 Address[src]
impl Copy for Address