Struct solana_rpc::rpc_subscriptions::RpcSubscriptions [−][src]
pub struct RpcSubscriptions { /* fields omitted */ }
Implementations
pub fn new(
exit: &Arc<AtomicBool>,
bank_forks: Arc<RwLock<BankForks>>,
block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>,
optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>
) -> Self
pub fn new_for_tests(
exit: &Arc<AtomicBool>,
bank_forks: Arc<RwLock<BankForks>>,
block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>,
optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>
) -> Self
pub fn new_with_config(
exit: &Arc<AtomicBool>,
bank_forks: Arc<RwLock<BankForks>>,
block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>,
optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>,
config: &PubSubConfig
) -> Self
Notify subscribers of changes to any accounts or new signatures since the bank’s last checkpoint.
Notify Confirmed commitment-level subscribers of changes to any accounts or new signatures.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RpcSubscriptions
impl Send for RpcSubscriptions
impl Sync for RpcSubscriptions
impl Unpin for RpcSubscriptions
impl !UnwindSafe for RpcSubscriptions
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