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 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),