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
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
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
Checks if the version message is valid
Reads the object from serialized form
Writes the object to serialized form
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static