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>), Transactions(Vec<Transaction>), 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>)
Transactions(Vec<Transaction>)
Unknown
Methods
impl ETHMessage
[src]
fn id(&self) -> usize
Get the message id of the ETH message
fn decode(rlp: &UntrustedRlp, id: usize) -> Result<Self, DecoderError>
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
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for ETHMessage
[src]
fn eq(&self, __arg_0: ÐMessage) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: ÐMessage) -> bool
This method tests for !=
.
impl Eq for ETHMessage
[src]
impl Encodable for ETHMessage
[src]
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
fn rlp_bytes(&self) -> ElasticArray1024<u8>
Get rlp-encoded bytes for this instance