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

Fields of Status

Methods

impl ETHMessage
[src]

Get the message id of the ETH message

Decode a RLP into ETH message using the given message id

Trait Implementations

impl Debug for ETHMessage
[src]

Formats the value using the given formatter.

impl Clone for ETHMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ETHMessage
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ETHMessage
[src]

impl Encodable for ETHMessage
[src]

Append a value to the stream

Get rlp-encoded bytes for this instance