pub struct ProgramTrackingPlugin;Expand description
Tracks per-program invocation counts and writes them to ClickHouse.
Trait Implementations§
Source§impl Clone for ProgramTrackingPlugin
impl Clone for ProgramTrackingPlugin
Source§fn clone(&self) -> ProgramTrackingPlugin
fn clone(&self) -> ProgramTrackingPlugin
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 ProgramTrackingPlugin
impl Debug for ProgramTrackingPlugin
Source§impl Default for ProgramTrackingPlugin
impl Default for ProgramTrackingPlugin
Source§fn default() -> ProgramTrackingPlugin
fn default() -> ProgramTrackingPlugin
Returns the “default value” for a type. Read more
Source§impl Plugin for ProgramTrackingPlugin
impl Plugin for ProgramTrackingPlugin
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.
Auto Trait Implementations§
impl Freeze for ProgramTrackingPlugin
impl RefUnwindSafe for ProgramTrackingPlugin
impl Send for ProgramTrackingPlugin
impl Sync for ProgramTrackingPlugin
impl Unpin for ProgramTrackingPlugin
impl UnwindSafe for ProgramTrackingPlugin
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