Macro scpi::cmd_nquery
source · macro_rules! cmd_nquery {
() => { ... };
}
Expand description
Marks the command as not queryable by creating a stub for Command::meta.
struct MyQuery;
impl Command<MyDevice> for MyQuery {
cmd_nquery!();
fn event(
&self,
_device: &mut MyDevice,
_context: &mut Context,
_params: Parameters,
) -> Result<(), Error> {
// Do stuff
Ok(())
}
}