Trait ethcore::block::IsBlock [−][src]
pub trait IsBlock { fn block(&self) -> &ExecutedBlock; fn to_base(&self) -> Block { ... } fn header(&self) -> &Header { ... } fn state(&self) -> &State<StateDB> { ... } fn transactions(&self) -> &[SignedTransaction] { ... } fn receipts(&self) -> &[Receipt] { ... } fn uncles(&self) -> &[Header] { ... } }
Trait for a object that is a ExecutedBlock
.
Required Methods
fn block(&self) -> &ExecutedBlock
Get the ExecutedBlock
associated with this object.
Provided Methods
fn to_base(&self) -> Block
Get the base Block
object associated with this.
fn header(&self) -> &Header
Get the header associated with this object's block.
fn state(&self) -> &State<StateDB>
Get the final state associated with this object's block.
fn transactions(&self) -> &[SignedTransaction]
Get all information on transactions in this block.
fn receipts(&self) -> &[Receipt]
Get all information on receipts in this block.
fn uncles(&self) -> &[Header]
Get all uncles in this block.
Implementors
impl IsBlock for ExecutedBlock
impl<'x> IsBlock for OpenBlock<'x>
impl IsBlock for ClosedBlock
impl IsBlock for LockedBlock
impl IsBlock for SealedBlock