Skip to main content

InstructionDecoderCollection

Trait InstructionDecoderCollection 

Source
pub trait InstructionDecoderCollection:
    Clone
    + Debug
    + Send
    + Sync
    + Eq
    + Hash
    + Serialize
    + 'static {
    type InstructionType: Clone + Debug + PartialEq + Eq + Send + Sync + 'static;

    // Required methods
    fn parse_instruction(instruction: &Instruction) -> Option<Self>;
    fn get_type(&self) -> Self::InstructionType;
}
Expand description

Enum-based instruction router used by Pipeline::transaction(...).

Implemented as a wrapper over multiple decoders, enabling unified dispatch of heterogeneous instruction types.

§Associated Types

Required Associated Types§

Required Methods§

Source

fn parse_instruction(instruction: &Instruction) -> Option<Self>

Source

fn get_type(&self) -> Self::InstructionType

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§