#[non_exhaustive]pub enum HeaderFieldSet {
Legacy,
London,
Shanghai,
Cancun,
Prague,
}Expand description
Fork-specific execution header field set.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Legacy
Header layout before EIP-1559.
London
Header layout with base_fee_per_gas.
Shanghai
Header layout with withdrawals_root.
Cancun
Header layout with blob gas fields and parent_beacon_block_root.
Prague
Header layout with requests_hash.
Implementations§
Source§impl HeaderFieldSet
impl HeaderFieldSet
Sourcepub const fn field_count(self) -> usize
pub const fn field_count(self) -> usize
Returns the exact RLP field count expected for this field set.
Trait Implementations§
Source§impl Clone for HeaderFieldSet
impl Clone for HeaderFieldSet
Source§fn clone(&self) -> HeaderFieldSet
fn clone(&self) -> HeaderFieldSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeaderFieldSet
Source§impl Debug for HeaderFieldSet
impl Debug for HeaderFieldSet
impl Eq for HeaderFieldSet
Source§impl PartialEq for HeaderFieldSet
impl PartialEq for HeaderFieldSet
Source§fn eq(&self, other: &HeaderFieldSet) -> bool
fn eq(&self, other: &HeaderFieldSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeaderFieldSet
Auto Trait Implementations§
impl Freeze for HeaderFieldSet
impl RefUnwindSafe for HeaderFieldSet
impl Send for HeaderFieldSet
impl Sync for HeaderFieldSet
impl Unpin for HeaderFieldSet
impl UnsafeUnpin for HeaderFieldSet
impl UnwindSafe for HeaderFieldSet
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