Struct ethcore_light::on_demand::request::HeaderByNumber
[−]
[src]
pub struct HeaderByNumber { pub num: u64, pub cht_root: H256, }
Request for a header by number.
Fields
num: u64
The header's number.
cht_root: H256
The root of the CHT containing this header.
Methods
impl HeaderByNumber
[src]
fn check_response(&self,
header: &[u8],
proof: &[Bytes])
-> Result<Header, Error>
header: &[u8],
proof: &[Bytes])
-> Result<Header, Error>
Check a response with a header and cht proof.
Trait Implementations
impl Debug for HeaderByNumber
[src]
impl Clone for HeaderByNumber
[src]
fn clone(&self) -> HeaderByNumber
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 HeaderByNumber
[src]
fn eq(&self, __arg_0: &HeaderByNumber) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HeaderByNumber) -> bool
This method tests for !=
.