Struct solana_rpc::optimistically_confirmed_bank_tracker::OptimisticallyConfirmedBankTracker [−][src]
pub struct OptimisticallyConfirmedBankTracker { /* fields omitted */ }
Implementations
pub fn new(
receiver: BankNotificationReceiver,
exit: &Arc<AtomicBool>,
bank_forks: Arc<RwLock<BankForks>>,
optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>,
subscriptions: Arc<RpcSubscriptions>,
bank_notification_subscribers: Option<Arc<RwLock<Vec<BankNotificationSender>>>>
) -> Self
pub fn process_notification(
notification: BankNotification,
bank_forks: &Arc<RwLock<BankForks>>,
optimistically_confirmed_bank: &Arc<RwLock<OptimisticallyConfirmedBank>>,
subscriptions: &Arc<RpcSubscriptions>,
pending_optimistically_confirmed_banks: &mut HashSet<Slot>,
last_notified_confirmed_slot: &mut Slot,
highest_confirmed_slot: &mut Slot,
bank_notification_subscribers: &Option<Arc<RwLock<Vec<BankNotificationSender>>>>
)
Auto Trait Implementations
impl Send for OptimisticallyConfirmedBankTracker
impl Sync for OptimisticallyConfirmedBankTracker
impl Unpin for OptimisticallyConfirmedBankTracker
impl !UnwindSafe for OptimisticallyConfirmedBankTracker
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more