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§
Provided Methods§
Sourcefn num_hash(&self) -> BlockNumHash
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".