pub struct InstructionTrackingPlugin;Expand description
Tracks total instructions executed per slot and batches writes to ClickHouse.
Trait Implementations§
Source§impl Clone for InstructionTrackingPlugin
impl Clone for InstructionTrackingPlugin
Source§fn clone(&self) -> InstructionTrackingPlugin
fn clone(&self) -> InstructionTrackingPlugin
Returns a duplicate of the value. Read more
1.0.0 · 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 InstructionTrackingPlugin
impl Debug for InstructionTrackingPlugin
Source§impl Default for InstructionTrackingPlugin
impl Default for InstructionTrackingPlugin
Source§fn default() -> InstructionTrackingPlugin
fn default() -> InstructionTrackingPlugin
Returns the “default value” for a type. Read more
Source§impl Plugin for InstructionTrackingPlugin
impl Plugin for InstructionTrackingPlugin
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Human-friendly plugin name used in logs and persisted metadata.
Source§fn on_transaction<'a>(
&'a self,
_thread_id: usize,
_db: Option<Arc<Client>>,
transaction: &'a TransactionData,
) -> PluginFuture<'a>
fn on_transaction<'a>( &'a self, _thread_id: usize, _db: Option<Arc<Client>>, transaction: &'a TransactionData, ) -> PluginFuture<'a>
Called for every transaction seen by the firehose.
Source§fn on_block(
&self,
_thread_id: usize,
db: Option<Arc<Client>>,
block: &BlockData,
) -> PluginFuture<'_>
fn on_block( &self, _thread_id: usize, db: Option<Arc<Client>>, block: &BlockData, ) -> PluginFuture<'_>
Called for every block observed by the firehose.
Source§fn on_load(&self, db: Option<Arc<Client>>) -> PluginFuture<'_>
fn on_load(&self, db: Option<Arc<Client>>) -> PluginFuture<'_>
Invoked once before the firehose starts streaming events.
Source§fn on_exit(&self, db: Option<Arc<Client>>) -> PluginFuture<'_>
fn on_exit(&self, db: Option<Arc<Client>>) -> PluginFuture<'_>
Invoked once after the firehose finishes or shuts down.
Source§fn id(&self) -> u16
fn id(&self) -> u16
Deterministic identifier derived from
Plugin::name.Source§fn on_entry<'a>(
&'a self,
_thread_id: usize,
_db: Option<Arc<Client>>,
_entry: &'a EntryData,
) -> PluginFuture<'a>
fn on_entry<'a>( &'a self, _thread_id: usize, _db: Option<Arc<Client>>, _entry: &'a EntryData, ) -> PluginFuture<'a>
Called for every entry observed by the firehose when entry notifications are enabled.
Source§fn on_reward<'a>(
&'a self,
_thread_id: usize,
_db: Option<Arc<Client>>,
_reward: &'a RewardsData,
) -> PluginFuture<'a>
fn on_reward<'a>( &'a self, _thread_id: usize, _db: Option<Arc<Client>>, _reward: &'a RewardsData, ) -> PluginFuture<'a>
Called for reward updates associated with processed blocks.
Source§fn on_error<'a>(
&'a self,
_thread_id: usize,
_db: Option<Arc<Client>>,
_error: &'a FirehoseErrorContext,
) -> PluginFuture<'a>
fn on_error<'a>( &'a self, _thread_id: usize, _db: Option<Arc<Client>>, _error: &'a FirehoseErrorContext, ) -> PluginFuture<'a>
Called whenever a firehose thread encounters an error before restarting.
Auto Trait Implementations§
impl Freeze for InstructionTrackingPlugin
impl RefUnwindSafe for InstructionTrackingPlugin
impl Send for InstructionTrackingPlugin
impl Sync for InstructionTrackingPlugin
impl Unpin for InstructionTrackingPlugin
impl UnwindSafe for InstructionTrackingPlugin
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request