[][src]Struct sv::messages::Version

pub struct Version {
    pub version: u32,
    pub services: u64,
    pub timestamp: i64,
    pub recv_addr: NodeAddr,
    pub tx_addr: NodeAddr,
    pub nonce: u64,
    pub user_agent: String,
    pub start_height: i32,
    pub relay: bool,
}

Version payload defining a node's capabilities

Fields

The protocol version being used by the node

Bitfield of features to be enabled for this connection

Time since the Unix epoch in seconds

Network address of the node receiving this message

Network address of the node emitting this message

A random nonce which can help a node detect a connection to itself

User agent string

Height of the transmiting node's best block chain, or in the case of SPV wallets, block header chain

Whether the client wants to receive broadcast transactions before a filter is set

Methods

impl Version
[src]

Checks if the version message is valid

Trait Implementations

impl Payload<Version> for Version
[src]

impl Serializable<Version> for Version
[src]

impl Clone for Version
[src]

Performs copy-assignment from source. Read more

impl Eq for Version
[src]

impl Default for Version
[src]

impl PartialEq<Version> for Version
[src]

impl Debug for Version
[src]

impl Hash for Version
[src]

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

Auto Trait Implementations

impl Send for Version

impl Sync for Version

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