Struct bitcoin::network::address::AddrV2Message [−][src]
pub struct AddrV2Message {
pub time: u32,
pub services: ServiceFlags,
pub addr: AddrV2,
pub port: u16,
}
Expand description
Address received from BIP155 addrv2 message
Fields
time: u32
Time that this node was last seen as connected to the network
services: ServiceFlags
Service bits
addr: AddrV2
Network ID + Network Address
port: u16
Network port, 0 if not applicable
Implementations
Extract socket address from an AddrV2Message message. This will return io::Error io::ErrorKind::AddrNotAvailable if the address type can’t be converted into a SocketAddr.
Trait Implementations
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 !=
.
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 AddrV2Message
impl Send for AddrV2Message
impl Sync for AddrV2Message
impl Unpin for AddrV2Message
impl UnwindSafe for AddrV2Message
Blanket Implementations
Mutably borrows from an owned value. Read more