[][src]Struct solana_core::rpc_subscriptions::RpcSubscriptions

pub struct RpcSubscriptions { /* fields omitted */ }

Implementations

impl RpcSubscriptions[src]

pub fn new(
    exit: &Arc<AtomicBool>,
    bank_forks: Arc<RwLock<BankForks>>,
    block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>
) -> Self
[src]

pub fn default_with_bank_forks(bank_forks: Arc<RwLock<BankForks>>) -> Self[src]

pub fn add_account_subscription(
    &self,
    pubkey: Pubkey,
    config: Option<RpcAccountInfoConfig>,
    sub_id: SubscriptionId,
    subscriber: Subscriber<Response<UiAccount>>
)
[src]

pub fn remove_account_subscription(&self, id: &SubscriptionId) -> bool[src]

pub fn add_program_subscription(
    &self,
    program_id: Pubkey,
    config: Option<RpcProgramAccountsConfig>,
    sub_id: SubscriptionId,
    subscriber: Subscriber<Response<RpcKeyedAccount>>
)
[src]

pub fn remove_program_subscription(&self, id: &SubscriptionId) -> bool[src]

pub fn add_signature_subscription(
    &self,
    signature: Signature,
    commitment: Option<CommitmentConfig>,
    sub_id: SubscriptionId,
    subscriber: Subscriber<Response<RpcSignatureResult>>
)
[src]

pub fn remove_signature_subscription(&self, id: &SubscriptionId) -> bool[src]

pub fn notify_subscribers(&self, commitment_slots: CommitmentSlots)[src]

Notify subscribers of changes to any accounts or new signatures since the bank's last checkpoint.

pub fn notify_gossip_subscribers(&self, slot: Slot)[src]

Notify SingleGossip commitment-level subscribers of changes to any accounts or new signatures.

pub fn add_slot_subscription(
    &self,
    sub_id: SubscriptionId,
    subscriber: Subscriber<SlotInfo>
)
[src]

pub fn remove_slot_subscription(&self, id: &SubscriptionId) -> bool[src]

pub fn notify_slot(&self, slot: Slot, parent: Slot, root: Slot)[src]

pub fn add_vote_subscription(
    &self,
    sub_id: SubscriptionId,
    subscriber: Subscriber<RpcVote>
)
[src]

pub fn remove_vote_subscription(&self, id: &SubscriptionId) -> bool[src]

pub fn notify_vote(&self, vote: &Vote)[src]

pub fn notify_frozen(&self, frozen_slot: Slot)[src]

pub fn add_root_subscription(
    &self,
    sub_id: SubscriptionId,
    subscriber: Subscriber<Slot>
)
[src]

pub fn remove_root_subscription(&self, id: &SubscriptionId) -> bool[src]

pub fn notify_roots(&self, rooted_slots: Vec<Slot>)[src]

Trait Implementations

impl Drop for RpcSubscriptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiExample for T[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]