Struct ethcore::encoded::Body
[−]
[src]
pub struct Body(_);
Owning block body view.
Methods
impl Body
[src]
fn new(raw: Vec<u8>) -> Self
Create a new owning block body view. The raw bytes passed in must be an rlp-encoded block body.
fn view(&self) -> BodyView
Get a borrowed view of the data within.
fn decode(&self) -> (Vec<UnverifiedTransaction>, Vec<FullHeader>)
Fully decode this block body.
fn rlp(&self) -> Rlp
Get the RLP of this block body.
fn into_inner(self) -> Vec<u8>
Consume the view and return the raw bytes.
impl Body
[src]
fn transactions(&self) -> Vec<UnverifiedTransaction>
Get a vector of all transactions.
fn transactions_count(&self) -> usize
Number of transactions in the block.
fn transaction_views(&self) -> Vec<TransactionView>
A view over each transaction in the block.
fn transaction_hashes(&self) -> Vec<H256>
The hash of each transaction in the block.
fn uncles(&self) -> Vec<FullHeader>
Decode uncle headers.
fn uncles_count(&self) -> usize
Number of uncles.
fn uncle_views(&self) -> Vec<HeaderView>
Borrowed view over each uncle.
fn uncle_hashes(&self) -> Vec<H256>
Hash of each uncle.
Trait Implementations
impl Debug for Body
[src]
impl Clone for Body
[src]
fn clone(&self) -> Body
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Body
[src]
fn eq(&self, __arg_0: &Body) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Body) -> bool
This method tests for !=
.