[][src]Struct sv::messages::NodeAddr

pub struct NodeAddr {
    pub services: u64,
    pub ip: Ipv6Addr,
    pub port: u16,
}

Network address for a node on the network

Fields

Services flags for the node

IPV6 address for the node. IPV4 addresses may be used as IPV4-mapped IPV6 addresses.

Port for Bitcoin P2P communication

Methods

impl NodeAddr
[src]

Size of the NodeAddr in bytes

Creates a NodeAddr from an IP address and port

Returns the size of the address in bytes

Trait Implementations

impl Serializable<NodeAddr> for NodeAddr
[src]

impl Clone for NodeAddr
[src]

Performs copy-assignment from source. Read more

impl Eq for NodeAddr
[src]

impl Default for NodeAddr
[src]

impl PartialEq<NodeAddr> for NodeAddr
[src]

impl Debug for NodeAddr
[src]

impl Hash for NodeAddr
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for NodeAddr

impl Sync for NodeAddr

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

Should always be Self