Struct solana_core::rpc::JsonRpcRequestProcessor [−][src]
pub struct JsonRpcRequestProcessor { /* fields omitted */ }
Implementations
impl JsonRpcRequestProcessor
[src]
impl JsonRpcRequestProcessor
[src]pub fn new(
config: JsonRpcConfig,
snapshot_config: Option<SnapshotConfig>,
bank_forks: Arc<RwLock<BankForks>>,
block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>,
blockstore: Arc<Blockstore>,
validator_exit: Arc<RwLock<ValidatorExit>>,
health: Arc<RpcHealth>,
cluster_info: Arc<ClusterInfo>,
genesis_hash: Hash,
runtime: Arc<Runtime>,
bigtable_ledger_storage: Option<LedgerStorage>,
optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>,
largest_accounts_cache: Arc<RwLock<LargestAccountsCache>>,
max_slots: Arc<MaxSlots>,
leader_schedule_cache: Arc<LeaderScheduleCache>,
max_complete_transaction_status_slot: Arc<AtomicU64>
) -> (Self, Receiver<TransactionInfo>)
[src]
config: JsonRpcConfig,
snapshot_config: Option<SnapshotConfig>,
bank_forks: Arc<RwLock<BankForks>>,
block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>,
blockstore: Arc<Blockstore>,
validator_exit: Arc<RwLock<ValidatorExit>>,
health: Arc<RpcHealth>,
cluster_info: Arc<ClusterInfo>,
genesis_hash: Hash,
runtime: Arc<Runtime>,
bigtable_ledger_storage: Option<LedgerStorage>,
optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>,
largest_accounts_cache: Arc<RwLock<LargestAccountsCache>>,
max_slots: Arc<MaxSlots>,
leader_schedule_cache: Arc<LeaderScheduleCache>,
max_complete_transaction_status_slot: Arc<AtomicU64>
) -> (Self, Receiver<TransactionInfo>)
pub fn new_from_bank(bank: &Arc<Bank>) -> Self
[src]
pub fn get_account_info(
&self,
pubkey: &Pubkey,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Option<UiAccount>>>
[src]
&self,
pubkey: &Pubkey,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Option<UiAccount>>>
pub fn get_multiple_accounts(
&self,
pubkeys: Vec<Pubkey>,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<Option<UiAccount>>>>
[src]
&self,
pubkeys: Vec<Pubkey>,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<Option<UiAccount>>>>
pub fn get_minimum_balance_for_rent_exemption(
&self,
data_len: usize,
commitment: Option<CommitmentConfig>
) -> u64
[src]
&self,
data_len: usize,
commitment: Option<CommitmentConfig>
) -> u64
pub fn get_program_accounts(
&self,
program_id: &Pubkey,
config: Option<RpcAccountInfoConfig>,
filters: Vec<RpcFilterType>,
with_context: bool
) -> Result<OptionalContext<Vec<RpcKeyedAccount>>>
[src]
&self,
program_id: &Pubkey,
config: Option<RpcAccountInfoConfig>,
filters: Vec<RpcFilterType>,
with_context: bool
) -> Result<OptionalContext<Vec<RpcKeyedAccount>>>
pub fn get_inflation_reward(
&self,
addresses: Vec<Pubkey>,
config: Option<RpcEpochConfig>
) -> Result<Vec<Option<RpcInflationReward>>>
[src]
&self,
addresses: Vec<Pubkey>,
config: Option<RpcEpochConfig>
) -> Result<Vec<Option<RpcInflationReward>>>
pub fn get_inflation_governor(
&self,
commitment: Option<CommitmentConfig>
) -> RpcInflationGovernor
[src]
&self,
commitment: Option<CommitmentConfig>
) -> RpcInflationGovernor
pub fn get_inflation_rate(&self) -> RpcInflationRate
[src]
pub fn get_epoch_schedule(&self) -> EpochSchedule
[src]
pub fn get_balance(
&self,
pubkey: &Pubkey,
commitment: Option<CommitmentConfig>
) -> RpcResponse<u64>
[src]
&self,
pubkey: &Pubkey,
commitment: Option<CommitmentConfig>
) -> RpcResponse<u64>
pub fn confirm_transaction(
&self,
signature: &Signature,
commitment: Option<CommitmentConfig>
) -> RpcResponse<bool>
[src]
&self,
signature: &Signature,
commitment: Option<CommitmentConfig>
) -> RpcResponse<bool>
pub fn get_block(
&self,
slot: Slot,
config: Option<RpcEncodingConfigWrapper<RpcBlockConfig>>
) -> Result<Option<UiConfirmedBlock>>
[src]
&self,
slot: Slot,
config: Option<RpcEncodingConfigWrapper<RpcBlockConfig>>
) -> Result<Option<UiConfirmedBlock>>
pub fn get_blocks(
&self,
start_slot: Slot,
end_slot: Option<Slot>,
commitment: Option<CommitmentConfig>
) -> Result<Vec<Slot>>
[src]
&self,
start_slot: Slot,
end_slot: Option<Slot>,
commitment: Option<CommitmentConfig>
) -> Result<Vec<Slot>>
pub fn get_blocks_with_limit(
&self,
start_slot: Slot,
limit: usize,
commitment: Option<CommitmentConfig>
) -> Result<Vec<Slot>>
[src]
&self,
start_slot: Slot,
limit: usize,
commitment: Option<CommitmentConfig>
) -> Result<Vec<Slot>>
pub fn get_block_time(&self, slot: Slot) -> Result<Option<UnixTimestamp>>
[src]
pub fn get_signature_confirmation_status(
&self,
signature: Signature,
commitment: Option<CommitmentConfig>
) -> Option<RpcSignatureConfirmation>
[src]
&self,
signature: Signature,
commitment: Option<CommitmentConfig>
) -> Option<RpcSignatureConfirmation>
pub fn get_signature_status(
&self,
signature: Signature,
commitment: Option<CommitmentConfig>
) -> Option<Result<()>>
[src]
&self,
signature: Signature,
commitment: Option<CommitmentConfig>
) -> Option<Result<()>>
pub fn get_signature_statuses(
&self,
signatures: Vec<Signature>,
config: Option<RpcSignatureStatusConfig>
) -> Result<RpcResponse<Vec<Option<TransactionStatus>>>>
[src]
&self,
signatures: Vec<Signature>,
config: Option<RpcSignatureStatusConfig>
) -> Result<RpcResponse<Vec<Option<TransactionStatus>>>>
pub fn get_transaction(
&self,
signature: Signature,
config: Option<RpcEncodingConfigWrapper<RpcTransactionConfig>>
) -> Result<Option<EncodedConfirmedTransaction>>
[src]
&self,
signature: Signature,
config: Option<RpcEncodingConfigWrapper<RpcTransactionConfig>>
) -> Result<Option<EncodedConfirmedTransaction>>
pub fn get_confirmed_signatures_for_address(
&self,
pubkey: Pubkey,
start_slot: Slot,
end_slot: Slot
) -> Vec<Signature>
[src]
&self,
pubkey: Pubkey,
start_slot: Slot,
end_slot: Slot
) -> Vec<Signature>
pub fn get_signatures_for_address(
&self,
address: Pubkey,
before: Option<Signature>,
until: Option<Signature>,
limit: usize,
commitment: Option<CommitmentConfig>
) -> Result<Vec<RpcConfirmedTransactionStatusWithSignature>>
[src]
&self,
address: Pubkey,
before: Option<Signature>,
until: Option<Signature>,
limit: usize,
commitment: Option<CommitmentConfig>
) -> Result<Vec<RpcConfirmedTransactionStatusWithSignature>>
pub fn get_first_available_block(&self) -> Slot
[src]
pub fn get_stake_activation(
&self,
pubkey: &Pubkey,
config: Option<RpcEpochConfig>
) -> Result<RpcStakeActivation>
[src]
&self,
pubkey: &Pubkey,
config: Option<RpcEpochConfig>
) -> Result<RpcStakeActivation>
pub fn get_token_account_balance(
&self,
pubkey: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<UiTokenAmount>>
[src]
&self,
pubkey: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<UiTokenAmount>>
pub fn get_token_supply(
&self,
mint: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<UiTokenAmount>>
[src]
&self,
mint: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<UiTokenAmount>>
pub fn get_token_largest_accounts(
&self,
mint: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<Vec<RpcTokenAccountBalance>>>
[src]
&self,
mint: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<Vec<RpcTokenAccountBalance>>>
pub fn get_token_accounts_by_owner(
&self,
owner: &Pubkey,
token_account_filter: TokenAccountsFilter,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<RpcKeyedAccount>>>
[src]
&self,
owner: &Pubkey,
token_account_filter: TokenAccountsFilter,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<RpcKeyedAccount>>>
pub fn get_token_accounts_by_delegate(
&self,
delegate: &Pubkey,
token_account_filter: TokenAccountsFilter,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<RpcKeyedAccount>>>
[src]
&self,
delegate: &Pubkey,
token_account_filter: TokenAccountsFilter,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<RpcKeyedAccount>>>
Trait Implementations
impl Clone for JsonRpcRequestProcessor
[src]
impl Clone for JsonRpcRequestProcessor
[src]fn clone(&self) -> JsonRpcRequestProcessor
[src]
fn clone(&self) -> JsonRpcRequestProcessor
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Metadata for JsonRpcRequestProcessor
[src]
Auto Trait Implementations
impl !RefUnwindSafe for JsonRpcRequestProcessor
impl Send for JsonRpcRequestProcessor
impl Sync for JsonRpcRequestProcessor
impl Unpin for JsonRpcRequestProcessor
impl !UnwindSafe for JsonRpcRequestProcessor
Blanket Implementations
impl<T> AbiExample for T
[src]
impl<T> AbiExample for T
[src]impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> IntoRequest<T> for T
[src]
impl<T> IntoRequest<T> for T
[src]pub fn into_request(self) -> Request<T>
[src]
pub fn into_request(self) -> Request<T>
[src]Wrap the input message T
in a tonic::Request
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>
[src]
fn with_current_subscriber(self) -> WithDispatch<Self>
[src]Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more