Trait solana_banks_interface::Banks [−][src]
pub trait Banks: Clone { type SendTransactionWithContextFut: Future<Output = ()>; type GetFeesWithCommitmentAndContextFut: Future<Output = (FeeCalculator, Hash, Slot)>; type GetTransactionStatusWithContextFut: Future<Output = Option<TransactionStatus>>; type GetSlotWithContextFut: Future<Output = Slot>; type ProcessTransactionWithCommitmentAndContextFut: Future<Output = Option<Result<()>>>; type GetAccountWithCommitmentAndContextFut: Future<Output = Option<Account>>; fn send_transaction_with_context(
self,
context: Context,
transaction: Transaction
) -> Self::SendTransactionWithContextFut; fn get_fees_with_commitment_and_context(
self,
context: Context,
commitment: CommitmentLevel
) -> Self::GetFeesWithCommitmentAndContextFut; fn get_transaction_status_with_context(
self,
context: Context,
signature: Signature
) -> Self::GetTransactionStatusWithContextFut; fn get_slot_with_context(
self,
context: Context,
commitment: CommitmentLevel
) -> Self::GetSlotWithContextFut; fn process_transaction_with_commitment_and_context(
self,
context: Context,
transaction: Transaction,
commitment: CommitmentLevel
) -> Self::ProcessTransactionWithCommitmentAndContextFut; fn get_account_with_commitment_and_context(
self,
context: Context,
address: Pubkey,
commitment: CommitmentLevel
) -> Self::GetAccountWithCommitmentAndContextFut; fn serve(self) -> ServeBanks<Self> { ... } }
Associated Types
type SendTransactionWithContextFut: Future<Output = ()>
type SendTransactionWithContextFut: Future<Output = ()>
The response future returned by send_transaction_with_context.
type GetFeesWithCommitmentAndContextFut: Future<Output = (FeeCalculator, Hash, Slot)>
type GetFeesWithCommitmentAndContextFut: Future<Output = (FeeCalculator, Hash, Slot)>
The response future returned by get_fees_with_commitment_and_context.
type GetTransactionStatusWithContextFut: Future<Output = Option<TransactionStatus>>
type GetTransactionStatusWithContextFut: Future<Output = Option<TransactionStatus>>
The response future returned by get_transaction_status_with_context.
type GetSlotWithContextFut: Future<Output = Slot>
type GetSlotWithContextFut: Future<Output = Slot>
The response future returned by get_slot_with_context.
The response future returned by process_transaction_with_commitment_and_context.
type GetAccountWithCommitmentAndContextFut: Future<Output = Option<Account>>
type GetAccountWithCommitmentAndContextFut: Future<Output = Option<Account>>
The response future returned by get_account_with_commitment_and_context.
Required methods
fn send_transaction_with_context(
self,
context: Context,
transaction: Transaction
) -> Self::SendTransactionWithContextFut
fn get_fees_with_commitment_and_context(
self,
context: Context,
commitment: CommitmentLevel
) -> Self::GetFeesWithCommitmentAndContextFut
fn get_transaction_status_with_context(
self,
context: Context,
signature: Signature
) -> Self::GetTransactionStatusWithContextFut
fn get_slot_with_context(
self,
context: Context,
commitment: CommitmentLevel
) -> Self::GetSlotWithContextFut
fn process_transaction_with_commitment_and_context(
self,
context: Context,
transaction: Transaction,
commitment: CommitmentLevel
) -> Self::ProcessTransactionWithCommitmentAndContextFut
fn get_account_with_commitment_and_context(
self,
context: Context,
address: Pubkey,
commitment: CommitmentLevel
) -> Self::GetAccountWithCommitmentAndContextFut
Provided methods
fn serve(self) -> ServeBanks<Self>
fn serve(self) -> ServeBanks<Self>
Returns a serving function to use with tarpc::server::Channel::respond_with.