solana/ledger/src/entry_notifier_interface.rs

8 lines
254 B
Rust

use {solana_entry::entry::EntrySummary, solana_sdk::clock::Slot, std::sync::Arc};
pub trait EntryNotifier {
fn notify_entry(&self, slot: Slot, index: usize, entry: &EntrySummary);
}
pub type EntryNotifierArc = Arc<dyn EntryNotifier + Sync + Send>;