Skip to main content

RunFn

Type Alias RunFn 

Source
pub type RunFn = Rc<dyn Fn(Value, &mut Window, &mut App) -> Result<Value, String>>;
Expand description

Runs a command with its arguments (null when it takes none); its result is JSON (null for a plain action), and an error says why it did not run.

Aliased Typeยง

pub struct RunFn { /* private fields */ }