MonitorCommandFn

Type Alias MonitorCommandFn 

Source
pub type MonitorCommandFn = fn(&mut SplitWhitespace<'_>, &mut dyn Write);
Expand description

Type for monitor command functions. This will be invoked by the debugger when the associated monitor command is invoked.

The first argument contains the whitespace separated arguments from the command. For example, if the command is my_command arg1 arg2, then arg1 and arg2 will be the first and second elements of the iterator respectively.

the second argument is a writer that should be used to write the output of the command. This can be done by directly invoking the core::fmt::Write trait methods or using the write! macro.