[−][src]Struct solana_core::rpc_subscriptions::RpcSubscriptions
Methods
impl RpcSubscriptions
[src]
pub fn new(exit: &Arc<AtomicBool>) -> Self
[src]
pub fn add_account_subscription(
&self,
pubkey: &Pubkey,
confirmations: Option<Confirmations>,
sub_id: &SubscriptionId,
sink: &Sink<RpcAccount>
)
[src]
&self,
pubkey: &Pubkey,
confirmations: Option<Confirmations>,
sub_id: &SubscriptionId,
sink: &Sink<RpcAccount>
)
pub fn remove_account_subscription(&self, id: &SubscriptionId) -> bool
[src]
pub fn add_program_subscription(
&self,
program_id: &Pubkey,
confirmations: Option<Confirmations>,
sub_id: &SubscriptionId,
sink: &Sink<RpcKeyedAccount>
)
[src]
&self,
program_id: &Pubkey,
confirmations: Option<Confirmations>,
sub_id: &SubscriptionId,
sink: &Sink<RpcKeyedAccount>
)
pub fn remove_program_subscription(&self, id: &SubscriptionId) -> bool
[src]
pub fn add_signature_subscription(
&self,
signature: &Signature,
confirmations: Option<Confirmations>,
sub_id: &SubscriptionId,
sink: &Sink<Result<()>>
)
[src]
&self,
signature: &Signature,
confirmations: Option<Confirmations>,
sub_id: &SubscriptionId,
sink: &Sink<Result<()>>
)
pub fn remove_signature_subscription(&self, id: &SubscriptionId) -> bool
[src]
pub fn notify_subscribers(
&self,
current_slot: Slot,
bank_forks: &Arc<RwLock<BankForks>>
)
[src]
&self,
current_slot: Slot,
bank_forks: &Arc<RwLock<BankForks>>
)
Notify subscribers of changes to any accounts or new signatures since the bank's last checkpoint.
pub fn add_slot_subscription(
&self,
sub_id: &SubscriptionId,
sink: &Sink<SlotInfo>
)
[src]
&self,
sub_id: &SubscriptionId,
sink: &Sink<SlotInfo>
)
pub fn remove_slot_subscription(&self, id: &SubscriptionId) -> bool
[src]
pub fn notify_slot(&self, slot: Slot, parent: Slot, root: Slot)
[src]
Trait Implementations
impl Default for RpcSubscriptions
[src]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> From<T> for T
[src]
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
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.
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>,
V: MultiLane<T>,