Trait solana_rpc::rpc_pubsub::RpcSolPubSubInternal[][src]

pub trait RpcSolPubSubInternal: Sized + Send + Sync + 'static {
Show 17 methods fn account_subscribe(
        &self,
        pubkey_str: String,
        config: Option<RpcAccountInfoConfig>
    ) -> Result<SubscriptionId>;
fn account_unsubscribe(&self, id: SubscriptionId) -> Result<bool>;
fn program_subscribe(
        &self,
        pubkey_str: String,
        config: Option<RpcProgramAccountsConfig>
    ) -> Result<SubscriptionId>;
fn program_unsubscribe(&self, id: SubscriptionId) -> Result<bool>;
fn logs_subscribe(
        &self,
        filter: RpcTransactionLogsFilter,
        config: Option<RpcTransactionLogsConfig>
    ) -> Result<SubscriptionId>;
fn logs_unsubscribe(&self, id: SubscriptionId) -> Result<bool>;
fn signature_subscribe(
        &self,
        signature_str: String,
        config: Option<RpcSignatureSubscribeConfig>
    ) -> Result<SubscriptionId>;
fn signature_unsubscribe(&self, id: SubscriptionId) -> Result<bool>;
fn slot_subscribe(&self) -> Result<SubscriptionId>;
fn slot_unsubscribe(&self, id: SubscriptionId) -> Result<bool>;
fn slots_updates_subscribe(&self) -> Result<SubscriptionId>;
fn slots_updates_unsubscribe(&self, id: SubscriptionId) -> Result<bool>;
fn vote_subscribe(&self) -> Result<SubscriptionId>;
fn vote_unsubscribe(&self, id: SubscriptionId) -> Result<bool>;
fn root_subscribe(&self) -> Result<SubscriptionId>;
fn root_unsubscribe(&self, id: SubscriptionId) -> Result<bool>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... }
}

Required methods

Provided methods

Create an IoDelegate, wiring rpc calls to the trait methods.

Implementors