pub struct SurfpoolSubgraphPlugin {
pub uuid: Uuid,
/* private fields */
}Fields§
§uuid: UuidTrait Implementations§
Source§impl Debug for SurfpoolSubgraphPlugin
impl Debug for SurfpoolSubgraphPlugin
Source§impl Default for SurfpoolSubgraphPlugin
impl Default for SurfpoolSubgraphPlugin
Source§fn default() -> SurfpoolSubgraphPlugin
fn default() -> SurfpoolSubgraphPlugin
Returns the “default value” for a type. Read more
Source§impl GeyserPlugin for SurfpoolSubgraphPlugin
impl GeyserPlugin for SurfpoolSubgraphPlugin
fn name(&self) -> &'static str
Source§fn on_load(&mut self, config_file: &str, _is_reload: bool) -> PluginResult<()>
fn on_load(&mut self, config_file: &str, _is_reload: bool) -> 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.
Source§fn 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.
Source§fn notify_end_of_startup(&self) -> PluginResult<()>
fn notify_end_of_startup(&self) -> PluginResult<()>
Called when all accounts are notified of during startup.
Source§fn update_account(
&self,
account: ReplicaAccountInfoVersions<'_>,
slot: Slot,
_is_startup: bool,
) -> PluginResult<()>
fn update_account( &self, account: ReplicaAccountInfoVersions<'_>, slot: Slot, _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.Source§fn update_slot_status(
&self,
_slot: Slot,
_parent: Option<u64>,
_status: &SlotStatus,
) -> PluginResult<()>
fn update_slot_status( &self, _slot: Slot, _parent: Option<u64>, _status: &SlotStatus, ) -> PluginResult<()>
Called when a slot status is updated
Source§fn notify_transaction(
&self,
transaction: ReplicaTransactionInfoVersions<'_>,
slot: Slot,
) -> PluginResult<()>
fn notify_transaction( &self, transaction: ReplicaTransactionInfoVersions<'_>, slot: Slot, ) -> PluginResult<()>
Called when a transaction is processed in a slot.
Source§fn notify_entry(&self, _entry: ReplicaEntryInfoVersions<'_>) -> PluginResult<()>
fn notify_entry(&self, _entry: ReplicaEntryInfoVersions<'_>) -> PluginResult<()>
Called when an entry is executed.
Source§fn notify_block_metadata(
&self,
_blockinfo: ReplicaBlockInfoVersions<'_>,
) -> PluginResult<()>
fn notify_block_metadata( &self, _blockinfo: ReplicaBlockInfoVersions<'_>, ) -> PluginResult<()>
Called when block’s metadata is updated.
Source§fn 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.
Source§fn 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 interested in
transaction data, please return true.
Source§fn entry_notifications_enabled(&self) -> bool
fn entry_notifications_enabled(&self) -> bool
Check if the plugin is interested in entry data
Default is false – if the plugin is interested in
entry data, return true.
Source§fn setup_logger(
&self,
logger: &'static dyn Log,
level: LevelFilter,
) -> Result<(), GeyserPluginError>
fn setup_logger( &self, logger: &'static dyn Log, level: LevelFilter, ) -> Result<(), GeyserPluginError>
The callback to allow the plugin to setup the logging configuration using the logger
and log level specified by the validator. Will be called first on load/reload, before any other
callback, and only called once. Read more
Source§fn account_data_snapshot_notifications_enabled(&self) -> bool
fn account_data_snapshot_notifications_enabled(&self) -> bool
Check if the plugin is interested in account data from snapshot
Default is true – if the plugin is not interested in
account data snapshot, please return false because startup would be
improved significantly.
Auto Trait Implementations§
impl !Freeze for SurfpoolSubgraphPlugin
impl RefUnwindSafe for SurfpoolSubgraphPlugin
impl Send for SurfpoolSubgraphPlugin
impl Sync for SurfpoolSubgraphPlugin
impl Unpin for SurfpoolSubgraphPlugin
impl UnsafeUnpin for SurfpoolSubgraphPlugin
impl UnwindSafe for SurfpoolSubgraphPlugin
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> 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