Struct ethcore::encoded::Body
[−]
[src]
pub struct Body(_);
Owning block body view.
Methods
impl Body
[src]
impl Body
pub fn new(raw: Vec<u8>) -> Self
[src]
pub 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.
pub fn view(&self) -> BodyView
[src]
pub fn view(&self) -> BodyView
Get a borrowed view of the data within.
pub fn decode(&self) -> (Vec<UnverifiedTransaction>, Vec<FullHeader>)
[src]
pub fn decode(&self) -> (Vec<UnverifiedTransaction>, Vec<FullHeader>)
Fully decode this block body.
pub fn rlp(&self) -> Rlp
[src]
pub fn rlp(&self) -> Rlp
Get the RLP of this block body.
pub fn into_inner(self) -> Vec<u8>
[src]
pub fn into_inner(self) -> Vec<u8>
Consume the view and return the raw bytes.
impl Body
[src]
impl Body
pub fn transactions_rlp(&self) -> Rlp
[src]
pub fn transactions_rlp(&self) -> Rlp
Get raw rlp of transactions
pub fn transactions(&self) -> Vec<UnverifiedTransaction>
[src]
pub fn transactions(&self) -> Vec<UnverifiedTransaction>
Get a vector of all transactions.
pub fn transactions_count(&self) -> usize
[src]
pub fn transactions_count(&self) -> usize
Number of transactions in the block.
pub fn transaction_views(&self) -> Vec<TransactionView>
[src]
pub fn transaction_views(&self) -> Vec<TransactionView>
A view over each transaction in the block.
pub fn transaction_hashes(&self) -> Vec<H256>
[src]
pub fn transaction_hashes(&self) -> Vec<H256>
The hash of each transaction in the block.
pub fn uncles_rlp(&self) -> Rlp
[src]
pub fn uncles_rlp(&self) -> Rlp
Get raw rlp of uncle headers
pub fn uncles(&self) -> Vec<FullHeader>
[src]
pub fn uncles(&self) -> Vec<FullHeader>
Decode uncle headers.
pub fn uncles_count(&self) -> usize
[src]
pub fn uncles_count(&self) -> usize
Number of uncles.
pub fn uncle_views(&self) -> Vec<HeaderView>
[src]
pub fn uncle_views(&self) -> Vec<HeaderView>
Borrowed view over each uncle.
pub fn uncle_hashes(&self) -> Vec<H256>
[src]
pub fn uncle_hashes(&self) -> Vec<H256>
Hash of each uncle.
Trait Implementations
impl Debug for Body
[src]
impl Debug for Body
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Body
[src]
impl Clone for Body
fn clone(&self) -> Body
[src]
fn clone(&self) -> Body
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Body
[src]
impl PartialEq for Body
fn eq(&self, __arg_0: &Body) -> bool
[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
[src]
fn ne(&self, __arg_0: &Body) -> bool
This method tests for !=
.
impl Eq for Body
[src]
impl Eq for Body
impl HeapSizeOf for Body
[src]
impl HeapSizeOf for Body
fn heap_size_of_children(&self) -> usize
[src]
fn heap_size_of_children(&self) -> usize
Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more