Struct ethcore::verification::PreverifiedBlock
source · [−]pub struct PreverifiedBlock {
pub header: Header,
pub transactions: Vec<SignedTransaction>,
pub uncles: Vec<Header>,
pub bytes: Bytes,
}
Expand description
Preprocessed block data gathered in verify_block_unordered
call
Fields
header: Header
Populated block header
transactions: Vec<SignedTransaction>
Populated block transactions
uncles: Vec<Header>
Populated block uncles
bytes: Bytes
Block bytes
Trait Implementations
sourceimpl BlockLike for PreverifiedBlock
impl BlockLike for PreverifiedBlock
sourcefn raw_hash(&self) -> H256
fn raw_hash(&self) -> H256
Get a raw hash of this item - i.e. the hash of the RLP representation.
sourcefn parent_hash(&self) -> H256
fn parent_hash(&self) -> H256
Get the hash of this item’s parent.
sourcefn difficulty(&self) -> U256
fn difficulty(&self) -> U256
Get the difficulty of this item.
sourceimpl MallocSizeOf for PreverifiedBlock
impl MallocSizeOf for PreverifiedBlock
sourcefn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
If T::size_of
is a constant, consider implementing constant_size
as well. Read more
sourcefn constant_size() -> Option<usize>
fn constant_size() -> Option<usize>
Used to optimize MallocSizeOf
implementation for collections
like Vec
and HashMap
to avoid iterating over them unnecessarily.
The Self: Sized
bound is for object safety. Read more
Auto Trait Implementations
impl RefUnwindSafe for PreverifiedBlock
impl Send for PreverifiedBlock
impl Sync for PreverifiedBlock
impl Unpin for PreverifiedBlock
impl UnwindSafe for PreverifiedBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> MallocSizeOfExt for T where
T: MallocSizeOf,
impl<T> MallocSizeOfExt for T where
T: MallocSizeOf,
sourcefn malloc_size_of(&self) -> usize
fn malloc_size_of(&self) -> usize
Method to launch a heapsize measurement with a fresh state. Read more