pub struct KafkaPlugin { /* private fields */ }
Implementations
sourceimpl KafkaPlugin
impl KafkaPlugin
Trait Implementations
sourceimpl Debug for KafkaPlugin
impl Debug for KafkaPlugin
sourceimpl Default for KafkaPlugin
impl Default for KafkaPlugin
sourcefn default() -> KafkaPlugin
fn default() -> KafkaPlugin
Returns the “default value” for a type. Read more
sourceimpl GeyserPlugin for KafkaPlugin
impl GeyserPlugin for KafkaPlugin
fn name(&self) -> &'static str
sourcefn on_load(&mut self, config_file: &str) -> PluginResult<()>
fn on_load(&mut self, config_file: &str) -> PluginResult<()>
The callback called when a plugin is loaded by the system, used for doing whatever initialization is required by the plugin. The _config_file contains the name of the of the config file. The config must be in JSON format and include a field “libpath” indicating the full path name of the shared library implementing this interface. Read more
sourcefn on_unload(&mut self)
fn on_unload(&mut self)
The callback called right before a plugin is unloaded by the system Used for doing cleanup before unload. Read more
sourcefn update_account(
&mut self,
account: ReplicaAccountInfoVersions<'_>,
slot: u64,
is_startup: bool
) -> PluginResult<()>
fn update_account(
&mut self,
account: ReplicaAccountInfoVersions<'_>,
slot: u64,
is_startup: bool
) -> PluginResult<()>
Called when an account is updated at a slot.
When is_startup
is true, it indicates the account is loaded from
snapshots when the validator starts up. When is_startup
is false,
the account is updated during transaction processing. Read more
sourcefn update_slot_status(
&mut self,
slot: u64,
parent: Option<u64>,
status: PluginSlotStatus
) -> PluginResult<()>
fn update_slot_status(
&mut self,
slot: u64,
parent: Option<u64>,
status: PluginSlotStatus
) -> PluginResult<()>
Called when a slot status is updated
sourcefn notify_transaction(
&mut self,
transaction: ReplicaTransactionInfoVersions<'_>,
slot: u64
) -> PluginResult<()>
fn notify_transaction(
&mut self,
transaction: ReplicaTransactionInfoVersions<'_>,
slot: u64
) -> PluginResult<()>
Called when a transaction is updated at a slot.
sourcefn account_data_notifications_enabled(&self) -> bool
fn account_data_notifications_enabled(&self) -> bool
Check if the plugin is interested in account data Default is true – if the plugin is not interested in account data, please return false. Read more
sourcefn transaction_notifications_enabled(&self) -> bool
fn transaction_notifications_enabled(&self) -> bool
Check if the plugin is interested in transaction data Default is false – if the plugin is not interested in transaction data, please return false. Read more
sourcefn notify_end_of_startup(&mut self) -> Result<(), GeyserPluginError>
fn notify_end_of_startup(&mut self) -> Result<(), GeyserPluginError>
Called when all accounts are notified of during startup.
sourcefn notify_block_metadata(
&mut self,
blockinfo: ReplicaBlockInfoVersions<'_>
) -> Result<(), GeyserPluginError>
fn notify_block_metadata(
&mut self,
blockinfo: ReplicaBlockInfoVersions<'_>
) -> Result<(), GeyserPluginError>
Called when block’s metadata is updated.
Auto Trait Implementations
impl !RefUnwindSafe for KafkaPlugin
impl Send for KafkaPlugin
impl Sync for KafkaPlugin
impl Unpin for KafkaPlugin
impl !UnwindSafe for KafkaPlugin
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more