Enum devp2p::ETHMessage
[−]
[src]
pub enum ETHMessage { Status { protocol_version: usize, network_id: usize, total_difficulty: U256, best_hash: H256, genesis_hash: H256, }, NewBlockHashes(Vec<(H256, U256)>), Transactions(Vec<Transaction>), GetBlockHeadersByNumber { number: U256, max_headers: usize, skip: usize, reverse: bool, }, GetBlockHeadersByHash { hash: H256, max_headers: usize, skip: usize, reverse: bool, }, BlockHeaders(Vec<Header>), GetBlockBodies(Vec<H256>), BlockBodies(Vec<(Vec<Transaction>, Vec<Header>)>), NewBlock { block: Block, total_difficulty: U256, }, Unknown, }
ETH message version 62 and 63
Variants
Status
Fields of Status
protocol_version: usize | |
network_id: usize | |
total_difficulty: U256 | |
best_hash: H256 | |
genesis_hash: H256 |
NewBlockHashes(Vec<(H256, U256)>)
Transactions(Vec<Transaction>)
GetBlockHeadersByNumber
Fields of GetBlockHeadersByNumber
number: U256 | |
max_headers: usize | |
skip: usize | |
reverse: bool |
GetBlockHeadersByHash
Fields of GetBlockHeadersByHash
hash: H256 | |
max_headers: usize | |
skip: usize | |
reverse: bool |
BlockHeaders(Vec<Header>)
GetBlockBodies(Vec<H256>)
BlockBodies(Vec<(Vec<Transaction>, Vec<Header>)>)
NewBlock
Fields of NewBlock
block: Block | |
total_difficulty: U256 |
Unknown
Methods
impl ETHMessage
[src]
fn id(&self) -> usize
[src]
Get the message id of the ETH message
fn decode(rlp: &UntrustedRlp, id: usize) -> Result<Self, DecoderError>
[src]
Decode a RLP into ETH message using the given message id
Trait Implementations
impl Debug for ETHMessage
[src]
impl Clone for ETHMessage
[src]
fn clone(&self) -> ETHMessage
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ETHMessage
[src]
fn eq(&self, __arg_0: ÐMessage) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: ÐMessage) -> bool
[src]
This method tests for !=
.