Struct ethcore::encoded::Body [−][src]
pub struct Body(_);
Owning block body view.
Methods
impl Body[src]
impl Bodypub fn new(raw: Vec<u8>) -> Self[src]
pub fn new(raw: Vec<u8>) -> SelfCreate 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) -> BodyViewGet 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) -> RlpGet 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 Bodypub fn transactions_rlp(&self) -> Rlp[src]
pub fn transactions_rlp(&self) -> RlpGet 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) -> usizeNumber 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) -> RlpGet 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) -> usizeNumber 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 Bodyfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Body[src]
impl Clone for Bodyfn clone(&self) -> Body[src]
fn clone(&self) -> BodyReturns 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 Bodyfn eq(&self, other: &Body) -> bool[src]
fn eq(&self, other: &Body) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Body) -> bool[src]
fn ne(&self, other: &Body) -> boolThis method tests for !=.
impl Eq for Body[src]
impl Eq for Bodyimpl HeapSizeOf for Body[src]
impl HeapSizeOf for Bodyfn heap_size_of_children(&self) -> usize[src]
fn heap_size_of_children(&self) -> usizeMeasure 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