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 = ()>[src]

The response future returned by send_transaction_with_context.

type GetFeesWithCommitmentAndContextFut: Future<Output = (FeeCalculator, Hash, Slot)>[src]

The response future returned by get_fees_with_commitment_and_context.

type GetTransactionStatusWithContextFut: Future<Output = Option<TransactionStatus>>[src]

The response future returned by get_transaction_status_with_context.

type GetSlotWithContextFut: Future<Output = Slot>[src]

The response future returned by get_slot_with_context.

type ProcessTransactionWithCommitmentAndContextFut: Future<Output = Option<Result<()>>>[src]

The response future returned by process_transaction_with_commitment_and_context.

type GetAccountWithCommitmentAndContextFut: Future<Output = Option<Account>>[src]

The response future returned by get_account_with_commitment_and_context.

Loading content...

Required methods

fn send_transaction_with_context(
    self,
    context: Context,
    transaction: Transaction
) -> Self::SendTransactionWithContextFut
[src]

fn get_fees_with_commitment_and_context(
    self,
    context: Context,
    commitment: CommitmentLevel
) -> Self::GetFeesWithCommitmentAndContextFut
[src]

fn get_transaction_status_with_context(
    self,
    context: Context,
    signature: Signature
) -> Self::GetTransactionStatusWithContextFut
[src]

fn get_slot_with_context(
    self,
    context: Context,
    commitment: CommitmentLevel
) -> Self::GetSlotWithContextFut
[src]

fn process_transaction_with_commitment_and_context(
    self,
    context: Context,
    transaction: Transaction,
    commitment: CommitmentLevel
) -> Self::ProcessTransactionWithCommitmentAndContextFut
[src]

fn get_account_with_commitment_and_context(
    self,
    context: Context,
    address: Pubkey,
    commitment: CommitmentLevel
) -> Self::GetAccountWithCommitmentAndContextFut
[src]

Loading content...

Provided methods

fn serve(self) -> ServeBanks<Self>[src]

Returns a serving function to use with tarpc::server::Channel::respond_with.

Loading content...

Implementors

Loading content...