[−][src]Struct memchain::Block
Fields
base_gas: u64
height: u64
state: HashMap<Address, Cow<'bc, Account>>
completed_transactions: Vec<Receipt>
Methods
impl<'bc> Block<'bc>
[src]
Trait Implementations
impl<'bc> Block for Block<'bc>
[src]
fn height(&self) -> u64
[src]
fn transact(
&mut self,
caller: Address,
callee: Address,
payer: Address,
value: u128,
input: &[u8],
gas: u64,
gas_price: u64
) -> Box<dyn Receipt>
[src]
&mut self,
caller: Address,
callee: Address,
payer: Address,
value: u128,
input: &[u8],
gas: u64,
gas_price: u64
) -> Box<dyn Receipt>
fn code_at(&self, addr: &Address) -> Option<&[u8]>
[src]
fn account_meta_at(&self, addr: &Address) -> Option<AccountMeta>
[src]
fn state_at(&self, addr: &Address) -> Option<&dyn KVStore>
[src]
fn events(&self) -> Vec<&Event>
[src]
fn receipts(&self) -> Vec<&dyn Receipt>
[src]
impl<'bc> Debug for Block<'bc>
[src]
impl<'bc> Eq for Block<'bc>
[src]
impl<'bc> PartialEq<Block<'bc>> for Block<'bc>
[src]
impl<'bc> StructuralEq for Block<'bc>
[src]
impl<'bc> StructuralPartialEq for Block<'bc>
[src]
Auto Trait Implementations
impl<'bc> RefUnwindSafe for Block<'bc>
impl<'bc> Send for Block<'bc>
impl<'bc> Sync for Block<'bc>
impl<'bc> Unpin for Block<'bc>
impl<'bc> UnwindSafe for Block<'bc>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,