pub struct Address {
pub services: u64,
pub address: [u16; 8],
pub port: u16,
}
A message which can be sent on the Bitcoin network
Services provided by the peer whose address this is
Network byte-order ipv6 address, or ipv4-mapped ipv6 address
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.
Encode an object with a well-defined format, should only ever error if the underlying Encoder errors. Read more
Decode an object with a well-defined format
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static