pub trait DebugOps {
// Required methods
fn log(&mut 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.