Trait MediumHookCommand

Source
pub trait MediumHookCommand {
    // Required method
    fn call(command_id: CommandId, flag: i32) -> bool;
}
Expand description

Consumers need to implement this trait in order to define what should happen when a certain action is invoked.

Required Methods§

Source

fn call(command_id: CommandId, flag: i32) -> bool

The actual callback function called by REAPER whenever an action was triggered to run.

Must return true to indicate that the given command has been processed.

flag is usually 0 but can sometimes have useful info depending on the message.

It’s okay to call another command within your command, however you must check for recursion if doing so!

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§