Struct bitcoin::network::address::AddrV2Message [−][src]
pub struct AddrV2Message { pub time: u32, pub services: ServiceFlags, pub addr: AddrV2, pub port: u16, }
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
impl AddrV2Message
[src]
impl AddrV2Message
[src]pub fn socket_addr(&self) -> Result<SocketAddr, Error>
[src]
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
impl Clone for AddrV2Message
[src]
impl Clone for AddrV2Message
[src]fn clone(&self) -> AddrV2Message
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Decodable for AddrV2Message
[src]
impl Decodable for AddrV2Message
[src]fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
impl Encodable for AddrV2Message
[src]
impl Encodable for AddrV2Message
[src]impl Hash for AddrV2Message
[src]
impl Hash for AddrV2Message
[src]impl PartialEq<AddrV2Message> for AddrV2Message
[src]
impl PartialEq<AddrV2Message> for AddrV2Message
[src]fn eq(&self, other: &AddrV2Message) -> bool
[src]
fn ne(&self, other: &AddrV2Message) -> bool
[src]
impl ToSocketAddrs for AddrV2Message
[src]
impl ToSocketAddrs for AddrV2Message
[src]type Iter = Once<SocketAddr>
Returned iterator over socket addresses which this type may correspond to. Read more