Struct ethcore_light::net::Capabilities [] [src]

pub struct Capabilities {
    pub serve_headers: bool,
    pub serve_chain_since: Option<u64>,
    pub serve_state_since: Option<u64>,
    pub tx_relay: bool,
}

Peer capabilities.

Fields

Whether this peer can serve headers

Earliest block number it can serve block/receipt requests for. None means no requests will be servable.

Earliest block number it can serve state requests for. None means no requests will be servable.

Whether it can relay transactions to the eth network.

Methods

impl Capabilities
[src]

Update the capabilities from an announcement.

Trait Implementations

impl Debug for Capabilities
[src]

Formats the value using the given formatter.

impl Clone for Capabilities
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Capabilities
[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 Capabilities
[src]

impl Default for Capabilities
[src]

Returns the "default value" for a type. Read more