Skip to main content

ExternalCommandHandler

Type Alias ExternalCommandHandler 

Source
pub type ExternalCommandHandler = Box<dyn FnMut(&str, &[String], Option<&[u8]>) -> Option<ExternalCommandResult>>;
Expand description

Callback type for external (host-provided) commands.

Called with (command_name, argv, stdin). Returns Some(result) if the command was handled, None to fall through to “command not found”.

Aliased Type§

pub struct ExternalCommandHandler(/* private fields */);