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
InstructionType: Discriminant returned byget_type, used for routing within the pipe.
Required Associated Types§
Required Methods§
fn parse_instruction(instruction: &Instruction) -> Option<Self>
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".