Trait solana_runtime::accounts_update_notifier_interface::AccountsUpdateNotifierInterface [−][src]
pub trait AccountsUpdateNotifierInterface: Debug {
fn notify_account_update(
&self,
slot: Slot,
pubkey: &Pubkey,
account: &AccountSharedData
);
fn notify_account_restore_from_snapshot(
&self,
slot: Slot,
account: &StoredAccountMeta<'_>
);
fn notify_slot_confirmed(&self, slot: Slot, parent: Option<Slot>);
fn notify_slot_processed(&self, slot: Slot, parent: Option<Slot>);
fn notify_slot_rooted(&self, slot: Slot, parent: Option<Slot>);
}
Required methods
fn notify_account_update(
&self,
slot: Slot,
pubkey: &Pubkey,
account: &AccountSharedData
)
fn notify_account_update(
&self,
slot: Slot,
pubkey: &Pubkey,
account: &AccountSharedData
)
Notified when an account is updated at runtime, due to transaction activities
fn notify_account_restore_from_snapshot(
&self,
slot: Slot,
account: &StoredAccountMeta<'_>
)
fn notify_account_restore_from_snapshot(
&self,
slot: Slot,
account: &StoredAccountMeta<'_>
)
Notified when the AccountsDb is initialized at start when restored from a snapshot.
fn notify_slot_confirmed(&self, slot: Slot, parent: Option<Slot>)
fn notify_slot_confirmed(&self, slot: Slot, parent: Option<Slot>)
Notified when a slot is optimistically confirmed
fn notify_slot_processed(&self, slot: Slot, parent: Option<Slot>)
fn notify_slot_processed(&self, slot: Slot, parent: Option<Slot>)
Notified when a slot is marked frozen.
fn notify_slot_rooted(&self, slot: Slot, parent: Option<Slot>)
fn notify_slot_rooted(&self, slot: Slot, parent: Option<Slot>)
Notified when a slot is rooted.