Trait forest_filecoin::shim::fvm_latest::kernel::DebugOps
source · pub trait DebugOps {
// Required methods
fn log(&self, msg: String);
fn debug_enabled(&self) -> bool;
fn store_artifact(
&self,
name: &str,
data: &[u8],
) -> Result<(), ExecutionError>;
}
Expand description
Debugging APIs.
Required Methods§
sourcefn debug_enabled(&self) -> bool
fn debug_enabled(&self) -> bool
Returns whether debug mode is enabled.
sourcefn store_artifact(&self, name: &str, data: &[u8]) -> Result<(), ExecutionError>
fn store_artifact(&self, name: &str, data: &[u8]) -> Result<(), ExecutionError>
Store an artifact. Returns error on malformed name, returns Ok and logs the error on system/os errors.