Trait JournalExt

Source
pub trait JournalExt {
    // Required methods
    fn logs(&self) -> &[Log];
    fn last_journal(&self) -> &[JournalEntry];
    fn evm_state(&self) -> &EvmState;
    fn evm_state_mut(&mut self) -> &mut EvmState;
}
Expand description

Extends the journal with additional methods that are used by the inspector.

Required Methods§

Source

fn logs(&self) -> &[Log]

Get all logs from the journal.

Source

fn last_journal(&self) -> &[JournalEntry]

Get the journal entries that are created from last checkpoint. new checkpoint is created when sub call is made.

Source

fn evm_state(&self) -> &EvmState

Return the current Journaled state.

Source

fn evm_state_mut(&mut self) -> &mut EvmState

Return the mutable current Journaled state.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + JournalExt + ?Sized> JournalExt for &'a mut T

Source§

fn logs(&self) -> &[Log]

Source§

fn last_journal(&self) -> &[JournalEntry]

Source§

fn evm_state(&self) -> &EvmState

Source§

fn evm_state_mut(&mut self) -> &mut EvmState

Source§

impl<DB: Database> JournalExt for Journal<DB>

Source§

fn logs(&self) -> &[Log]

Source§

fn last_journal(&self) -> &[JournalEntry]

Source§

fn evm_state(&self) -> &EvmState

Source§

fn evm_state_mut(&mut self) -> &mut EvmState

Source§

impl<T: JournalExt + ?Sized> JournalExt for Box<T>

Source§

fn logs(&self) -> &[Log]

Source§

fn last_journal(&self) -> &[JournalEntry]

Source§

fn evm_state(&self) -> &EvmState

Source§

fn evm_state_mut(&mut self) -> &mut EvmState

Implementors§