DebugOps

Trait DebugOps 

Source
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§

Source

fn log(&mut self, msg: String)

Log a message.

Source

fn debug_enabled(&self) -> bool

Returns whether debug mode is enabled.

Source

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.

Implementors§