Struct solana_core::rpc_subscriptions::RpcSubscriptions [−][src]
Implementations
impl RpcSubscriptions
[src]
pub fn new(
exit: &Arc<AtomicBool>,
bank_forks: Arc<RwLock<BankForks>>,
block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>,
optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>
) -> Self
[src]
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_vote_subscription(
exit: &Arc<AtomicBool>,
bank_forks: Arc<RwLock<BankForks>>,
block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>,
optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>,
enable_vote_subscription: bool
) -> Self
[src]
exit: &Arc<AtomicBool>,
bank_forks: Arc<RwLock<BankForks>>,
block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>,
optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>,
enable_vote_subscription: bool
) -> Self
pub fn default_with_bank_forks(bank_forks: Arc<RwLock<BankForks>>) -> Self
[src]
pub fn total(&self) -> usize
[src]
pub fn add_account_subscription(
&self,
pubkey: Pubkey,
config: Option<RpcAccountInfoConfig>,
sub_id: SubscriptionId,
subscriber: Subscriber<Response<UiAccount>>
)
[src]
&self,
pubkey: Pubkey,
config: Option<RpcAccountInfoConfig>,
sub_id: SubscriptionId,
subscriber: Subscriber<Response<UiAccount>>
)
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]
&self,
program_id: Pubkey,
config: Option<RpcProgramAccountsConfig>,
sub_id: SubscriptionId,
subscriber: Subscriber<Response<RpcKeyedAccount>>
)
pub fn remove_program_subscription(&self, id: &SubscriptionId) -> bool
[src]
pub fn add_logs_subscription(
&self,
address: Option<Pubkey>,
include_votes: bool,
commitment: Option<CommitmentConfig>,
sub_id: SubscriptionId,
subscriber: Subscriber<Response<RpcLogsResponse>>
)
[src]
&self,
address: Option<Pubkey>,
include_votes: bool,
commitment: Option<CommitmentConfig>,
sub_id: SubscriptionId,
subscriber: Subscriber<Response<RpcLogsResponse>>
)
pub fn remove_logs_subscription(&self, id: &SubscriptionId) -> bool
[src]
pub fn add_signature_subscription(
&self,
signature: Signature,
signature_subscribe_config: Option<RpcSignatureSubscribeConfig>,
sub_id: SubscriptionId,
subscriber: Subscriber<Response<RpcSignatureResult>>
)
[src]
&self,
signature: Signature,
signature_subscribe_config: Option<RpcSignatureSubscribeConfig>,
sub_id: SubscriptionId,
subscriber: Subscriber<Response<RpcSignatureResult>>
)
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 Confirmed commitment-level subscribers of changes to any accounts or new signatures.
pub fn notify_slot_update(&self, slot_update: SlotUpdate)
[src]
pub fn add_slot_subscription(
&self,
sub_id: SubscriptionId,
subscriber: Subscriber<SlotInfo>
)
[src]
&self,
sub_id: SubscriptionId,
subscriber: Subscriber<SlotInfo>
)
pub fn remove_slot_subscription(&self, id: &SubscriptionId) -> bool
[src]
pub fn add_slots_updates_subscription(
&self,
sub_id: SubscriptionId,
subscriber: Subscriber<Arc<SlotUpdate>>
)
[src]
&self,
sub_id: SubscriptionId,
subscriber: Subscriber<Arc<SlotUpdate>>
)
pub fn remove_slots_updates_subscription(&self, id: &SubscriptionId) -> bool
[src]
pub fn notify_slot(&self, slot: Slot, parent: Slot, root: Slot)
[src]
pub fn notify_signatures_received(
&self,
slot_signatures: (Slot, Vec<Signature>)
)
[src]
&self,
slot_signatures: (Slot, Vec<Signature>)
)
pub fn add_vote_subscription(
&self,
sub_id: SubscriptionId,
subscriber: Subscriber<RpcVote>
)
[src]
&self,
sub_id: SubscriptionId,
subscriber: Subscriber<RpcVote>
)
pub fn remove_vote_subscription(&self, id: &SubscriptionId) -> bool
[src]
pub fn notify_vote(&self, vote: &Vote)
[src]
pub fn add_root_subscription(
&self,
sub_id: SubscriptionId,
subscriber: Subscriber<Slot>
)
[src]
&self,
sub_id: SubscriptionId,
subscriber: Subscriber<Slot>
)
pub fn remove_root_subscription(&self, id: &SubscriptionId) -> bool
[src]
pub fn notify_roots(&self, rooted_slots: Vec<Slot>)
[src]
pub fn add_evm_block_subscription(
&self,
sub_id: SubscriptionId,
subscriber: Subscriber<RPCBlock>
)
[src]
&self,
sub_id: SubscriptionId,
subscriber: Subscriber<RPCBlock>
)
pub fn remove_evm_block_subscription(&self, id: &SubscriptionId) -> bool
[src]
pub fn notify_evm_block(&self, new_head: Block)
[src]
Trait Implementations
impl Drop for RpcSubscriptions
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,