pub enum DiscoveryFilter {
ProgramExecuted(Address),
}Expand description
A filter registered at session creation describing which upcoming batches
the session should announce ahead of execution via
BacktestResponse::DiscoveryBatch (and its session-event twins). Each
filter describes an event of interest (e.g. a specific program executing);
the session “discovers” the batch in which that event will occur and
emits a DiscoveryBatch so the client can pause immediately before it.
Variants§
Implementations§
Source§impl DiscoveryFilter
impl DiscoveryFilter
Sourcepub fn matches(&self, ctx: &TxMatchContext<'_>) -> bool
pub fn matches(&self, ctx: &TxMatchContext<'_>) -> bool
Return true when this filter is satisfied by the transaction
described by ctx.
Trait Implementations§
Source§impl Clone for DiscoveryFilter
impl Clone for DiscoveryFilter
Source§fn clone(&self) -> DiscoveryFilter
fn clone(&self) -> DiscoveryFilter
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 DiscoveryFilter
impl Debug for DiscoveryFilter
Source§impl<'de> Deserialize<'de> for DiscoveryFilter
impl<'de> Deserialize<'de> for DiscoveryFilter
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 DiscoveryFilter
impl RefUnwindSafe for DiscoveryFilter
impl Send for DiscoveryFilter
impl Sync for DiscoveryFilter
impl Unpin for DiscoveryFilter
impl UnsafeUnpin for DiscoveryFilter
impl UnwindSafe for DiscoveryFilter
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