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 provided by the peer whose address this is

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

Network port

Methods

impl Address
[src]

Create an address message for a socket

extract socket address from an address message This will return io::Error ErrorKind::AddrNotAvailable if the message contains a Tor address.

Trait Implementations

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

Encode an object with a well-defined format

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

Decode an object with a well-defined format

impl Debug for Address
[src]

Formats the value using the given formatter. Read more

impl Clone for Address
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Address
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Address
[src]

Auto Trait Implementations

impl Send for Address

impl Sync for Address