pub trait TransactionEventParser {
type Event: Send + 'static;
// Required method
fn parse_transaction_events<F>(
&mut self,
transaction: &VersionedTransaction,
slot: u64,
tx_index: u64,
recv_us: i64,
emit: F,
) -> AnyResult<usize>
where F: FnMut(Self::Event);
}Expand description
Parser plug-in used by raw shred ingestion.
sol-shred-sdk owns shred networking/reassembly. Higher-level crates can
implement this trait for their own event enum without reimplementing raw
shred decoding.
Required Associated Types§
Required Methods§
fn parse_transaction_events<F>( &mut self, transaction: &VersionedTransaction, slot: u64, tx_index: u64, recv_us: i64, emit: F, ) -> AnyResult<usize>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".