pub struct Block<T> {
pub header: Header,
pub body: BlockBody<T>,
}
Expand description
Ethereum full block.
Withdrawals can be optionally included at the end of the RLP encoded message.
Taken from reth-primitives
See p2p block encoding reference: https://github.com/ethereum/devp2p/blob/master/caps/eth.md#block-encoding-and-validity
Fields§
§header: Header
Block header.
body: BlockBody<T>
Block body.
Trait Implementations§
impl<T: Eq> Eq for Block<T>
impl<T> StructuralPartialEq for Block<T>
Auto Trait Implementations§
impl<T> !Freeze for Block<T>
impl<T> RefUnwindSafe for Block<T>where
T: RefUnwindSafe,
impl<T> Send for Block<T>where
T: Send,
impl<T> Sync for Block<T>where
T: Sync,
impl<T> Unpin for Block<T>where
T: Unpin,
impl<T> UnwindSafe for Block<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)