pub struct Header {Show 15 fields
pub parent_hash: H256,
pub ommers_hash: H256,
pub beneficiary: Address,
pub state_root: H256,
pub transactions_root: H256,
pub receipts_root: H256,
pub logs_bloom: LogsBloom,
pub difficulty: U256,
pub number: U256,
pub gas_limit: Gas,
pub gas_used: Gas,
pub timestamp: u64,
pub extra_data: B256,
pub mix_hash: H256,
pub nonce: H64,
}Fields§
§parent_hash: H256§ommers_hash: H256§beneficiary: Address§state_root: H256§transactions_root: H256§receipts_root: H256§logs_bloom: LogsBloom§difficulty: U256§number: U256§gas_limit: Gas§gas_used: Gas§timestamp: u64§extra_data: B256§mix_hash: H256§nonce: H64Implementations§
Source§impl Header
impl Header
pub fn partial_rlp_append(&self, s: &mut RlpStream)
pub fn partial_hash(&self) -> H256
Trait Implementations§
Source§impl Decodable for Header
impl Decodable for Header
Source§fn decode(rlp: &UntrustedRlp<'_>) -> Result<Self, DecoderError>
fn decode(rlp: &UntrustedRlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
Source§impl Encodable for Header
impl Encodable for Header
Source§fn rlp_append(&self, s: &mut RlpStream)
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
Source§fn rlp_bytes(&self) -> ElasticArray1024<u8>
fn rlp_bytes(&self) -> ElasticArray1024<u8>
Get rlp-encoded bytes for this instance
Source§impl HeaderHash<H256> for Header
impl HeaderHash<H256> for Header
fn parent_hash(&self) -> Option<H256>
fn header_hash(&self) -> H256
Source§impl Into<Header> for TotalHeader
impl Into<Header> for TotalHeader
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more