Struct era_test_node::console_log::ConsoleLogHandler
source · pub struct ConsoleLogHandler { /* private fields */ }
Expand description
ConsoleLogHandler is responsible for printing the logs, that are created when contract calls ‘console.log’ method. This is a popular debugging method used by hardhat and foundry. When user wants to log something, these tools are doing a call to a contract at a given (fake) address. The ConsoleLogHandler is catching this call, and printing it out – but only if TRACE level log is enabled for ‘console’ target.
Implementations§
source§impl ConsoleLogHandler
impl ConsoleLogHandler
pub fn handle_call_recursive(&self, current_call: &Call)
pub fn handle_call(&self, current_call: &Call)
Trait Implementations§
source§impl Clone for ConsoleLogHandler
impl Clone for ConsoleLogHandler
source§fn clone(&self) -> ConsoleLogHandler
fn clone(&self) -> ConsoleLogHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConsoleLogHandler
impl Debug for ConsoleLogHandler
Auto Trait Implementations§
impl RefUnwindSafe for ConsoleLogHandler
impl Send for ConsoleLogHandler
impl Sync for ConsoleLogHandler
impl Unpin for ConsoleLogHandler
impl UnwindSafe for ConsoleLogHandler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more