Struct bitcoin::network::address::Address [] [src]

pub struct Address {
    pub services: u64,
    pub address: [u16; 8],
    pub port: u16,
}

A message which can be sent on the Bitcoin network

Fields

services: u64

Services provided by the peer whose address this is

address: [u16; 8]

Network byte-order ipv6 address, or ipv4-mapped ipv6 address

port: u16

Network port

Trait Implementations

impl<S: SimpleEncoder> ConsensusEncodable<S> for Address
[src]

fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error>

Encode an object with a well-defined format

impl<D: SimpleDecoder> ConsensusDecodable<D> for Address
[src]

fn consensus_decode(d: &mut D) -> Result<Address, D::Error>

Decode an object with a well-defined format

impl Debug for Address
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

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 PartialEq for Address
[src]

fn eq(&self, other: &Address) -> 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 Address
[src]