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§
fn action(&self, view: &BinaryView)
fn valid(&self, view: &BinaryView) -> bool
Implementors§
impl<T> Command for Twhere
T: 'static + Sync + Fn(&BinaryView),
where T: 'static + Sync + Fn(&BinaryView),