[][src]Struct solana::rpc_subscriptions::RpcSubscriptions

pub struct RpcSubscriptions { /* fields omitted */ }

Methods

impl RpcSubscriptions[src]

pub fn check_account(
    &self,
    pubkey: &Pubkey,
    current_slot: u64,
    bank_forks: &Arc<RwLock<BankForks>>
)
[src]

pub fn check_program(
    &self,
    program_id: &Pubkey,
    current_slot: u64,
    bank_forks: &Arc<RwLock<BankForks>>
)
[src]

pub fn check_signature(
    &self,
    signature: &Signature,
    current_slot: u64,
    bank_forks: &Arc<RwLock<BankForks>>
)
[src]

pub fn add_account_subscription(
    &self,
    pubkey: &Pubkey,
    confirmations: Option<Confirmations>,
    sub_id: &SubscriptionId,
    sink: &Sink<Account>
)
[src]

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<(String, Account)>
)
[src]

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]

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

pub fn notify_subscribers(
    &self,
    current_slot: u64,
    bank_forks: &Arc<RwLock<BankForks>>
)
[src]

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

Trait Implementations

impl Default for RpcSubscriptions[src]

Auto Trait Implementations

Blanket Implementations

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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