Skip to main content

OpcodeGroup

Trait OpcodeGroup 

Source
pub trait OpcodeGroup:
    Sized
    + HandlerTypes
    + Copy
    + 'static {
    // Required methods
    fn title(self) -> &'static str;
    fn description(self) -> &'static str;
    fn decode_fn(self) -> Self::DecodeFn;
    fn validate_fn(self) -> Self::ValidateFn;
    fn execute_fn(self) -> Self::ExecuteFn;
    fn all() -> &'static [Self];
}
Expand description

Trait for OpcodeGroup metadata and decode/validate/execute handler routing.

Required Methods§

Source

fn title(self) -> &'static str

Source

fn description(self) -> &'static str

Source

fn decode_fn(self) -> Self::DecodeFn

Source

fn validate_fn(self) -> Self::ValidateFn

Source

fn execute_fn(self) -> Self::ExecuteFn

Source

fn all() -> &'static [Self]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§