Command in binaryninja::command - Rust

Trait Command

Source

pub trait Command: 'static + Sync {
    // Required methods
    fn action(&self, view: &BinaryView);
    fn valid(&self, view: &BinaryView) -> bool;
}
Expand description

The trait required for generic commands. See register_command for example usage.

Required Methods§

Source

fn action(&self, view: &BinaryView)

Source

fn valid(&self, view: &BinaryView) -> bool

Implementors§

Source§

impl<T> Command for T

where T: 'static + Sync + Fn(&BinaryView),