Skip to main content

HeaderResponse

Trait HeaderResponse 

Source
pub trait HeaderResponse: BlockHeader {
    // Required method
    fn hash(&self) -> BlockHash;

    // Provided method
    fn num_hash(&self) -> BlockNumHash { ... }
}
Expand description

Header JSON-RPC response.

Required Methods§

Source

fn hash(&self) -> BlockHash

Block hash

Provided Methods§

Source

fn num_hash(&self) -> BlockNumHash

Returns the BlockNumHash of this header.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: HeaderResponse> HeaderResponse for WithOtherFields<T>

Source§

fn hash(&self) -> BlockHash

Implementors§