[−][src]Struct bitcoin::network::address::AddrV2Message
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
Methods
impl AddrV2Message
[src]
pub fn socket_addr(&self) -> Result<SocketAddr, Error>
[src]
Extract socket address from an [AddrV2Message] message. This will return [io::Error] [ErrorKind::AddrNotAvailable] if the address type can't be converted into a [SocketAddr].
Trait Implementations
impl Encodable for AddrV2Message
[src]
impl Decodable for AddrV2Message
[src]
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
impl Clone for AddrV2Message
[src]
fn clone(&self) -> AddrV2Message
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<AddrV2Message> for AddrV2Message
[src]
fn eq(&self, other: &AddrV2Message) -> bool
[src]
fn ne(&self, other: &AddrV2Message) -> bool
[src]
impl Eq for AddrV2Message
[src]
impl Debug for AddrV2Message
[src]
impl Hash for AddrV2Message
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl ToSocketAddrs for AddrV2Message
[src]
type Iter = Once<SocketAddr>
Returned iterator over socket addresses which this type may correspond to. Read more
fn to_socket_addrs(&self) -> Result<Self::Iter, Error>
[src]
Auto Trait Implementations
impl Unpin for AddrV2Message
impl Sync for AddrV2Message
impl Send for AddrV2Message
impl UnwindSafe for AddrV2Message
impl RefUnwindSafe for AddrV2Message
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,