pub struct FilterSet {
pub all: Vec<Filter>,
pub token: Vec<Filter>,
pub no_token: Vec<Filter>,
}
Expand description
Represents a set of categorized blockchain log filters for optimized indexer performance.
This structure organizes filters into different categories to enable selective log
processing based on the indexer’s operational state. During initial synchronization,
the indexer uses no_token
filters to exclude irrelevant token events, significantly
reducing processing time and storage requirements. During normal operation, it uses
all
filters for complete event coverage.
The token
filters specifically target token-related events for the node’s safe address.
Fields§
§all: Vec<Filter>
holds all filters for the indexer
token: Vec<Filter>
holds only the token contract related filters
no_token: Vec<Filter>
holds only filters not related to the token contract
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilterSet
impl RefUnwindSafe for FilterSet
impl Send for FilterSet
impl Sync for FilterSet
impl Unpin for FilterSet
impl UnwindSafe for FilterSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more