pub struct DiscoveryBatchEvent {
pub slot: u64,
pub batch_index: u32,
pub matched: Vec<DiscoveryFilter>,
pub transactions: Vec<EncodedBinary>,
}Expand description
Payload emitted when the session has discovered an upcoming batch that
matches one or more registered DiscoveryFilters from session creation
(for example, a batch containing a transaction that invokes a program of
interest). The (slot, batch_index) pair can be fed directly to
BacktestRequest::ContinueTo to pause immediately before the batch
executes. After each Continue / ContinueTo, the session emits the
next DiscoveryBatchEvent ahead of the next matching batch, enabling a
reactive “pause on every discovery” driver loop.
Fields§
§slot: u64§batch_index: u32§matched: Vec<DiscoveryFilter>Filters that matched this batch (always non-empty).
transactions: Vec<EncodedBinary>Encoded transactions in this batch that triggered the match. Each
entry carries the serialized VersionedTransaction bytes paired with
the encoding used.
Trait Implementations§
Source§impl Clone for DiscoveryBatchEvent
impl Clone for DiscoveryBatchEvent
Source§fn clone(&self) -> DiscoveryBatchEvent
fn clone(&self) -> DiscoveryBatchEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiscoveryBatchEvent
impl Debug for DiscoveryBatchEvent
Source§impl<'de> Deserialize<'de> for DiscoveryBatchEvent
impl<'de> Deserialize<'de> for DiscoveryBatchEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DiscoveryBatchEvent
impl RefUnwindSafe for DiscoveryBatchEvent
impl Send for DiscoveryBatchEvent
impl Sync for DiscoveryBatchEvent
impl Unpin for DiscoveryBatchEvent
impl UnsafeUnpin for DiscoveryBatchEvent
impl UnwindSafe for DiscoveryBatchEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more