Struct bitcoin::network::address::Address [−][src]
pub struct Address {
pub services: ServiceFlags,
pub address: [u16; 8],
pub port: u16,
}
Expand description
A message which can be sent on the Bitcoin network
Fields
services: ServiceFlags
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
Implementations
Create an address message for a socket
Extract socket address from an Address message. This will return io::Error io::ErrorKind::AddrNotAvailable if the message contains a Tor address.
Trait Implementations
Decode an object with a well-defined format
type Iter = Once<SocketAddr>
type Iter = Once<SocketAddr>
Returned iterator over socket addresses which this type may correspond to. Read more
Auto Trait Implementations
impl RefUnwindSafe for Address
impl UnwindSafe for Address
Blanket Implementations
Mutably borrows from an owned value. Read more