Struct ethcore::verification::queue::kind::blocks::Unverified
source · [−]pub struct Unverified {
pub header: Header,
pub transactions: Vec<UnverifiedTransaction>,
pub uncles: Vec<Header>,
pub bytes: Bytes,
}
Expand description
An unverified block.
Fields
header: Header
Unverified block header.
transactions: Vec<UnverifiedTransaction>
Unverified block transactions.
uncles: Vec<Header>
Unverified block uncles.
bytes: Bytes
Raw block bytes.
Implementations
sourceimpl Unverified
impl Unverified
sourcepub fn from_rlp(
bytes: Bytes,
eip1559_transition: BlockNumber
) -> Result<Self, DecoderError>
pub fn from_rlp(
bytes: Bytes,
eip1559_transition: BlockNumber
) -> Result<Self, DecoderError>
Create an Unverified
from raw bytes.
Trait Implementations
sourceimpl BlockLike for Unverified
impl BlockLike for Unverified
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 Debug for Unverified
impl Debug for Unverified
sourceimpl MallocSizeOf for Unverified
impl MallocSizeOf for Unverified
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
sourceimpl PartialEq<Unverified> for Unverified
impl PartialEq<Unverified> for Unverified
sourcefn eq(&self, other: &Unverified) -> bool
fn eq(&self, other: &Unverified) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Unverified) -> bool
fn ne(&self, other: &Unverified) -> bool
This method tests for !=
.
impl StructuralPartialEq for Unverified
Auto Trait Implementations
impl RefUnwindSafe for Unverified
impl Send for Unverified
impl Sync for Unverified
impl Unpin for Unverified
impl UnwindSafe for Unverified
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