[][src]Trait solana_banks_interface::Banks

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>>;
    pub fn send_transaction_with_context(
        self,
        context: Context,
        transaction: Transaction
    ) -> Self::SendTransactionWithContextFut;
pub fn get_fees_with_commitment_and_context(
        self,
        context: Context,
        commitment: CommitmentLevel
    ) -> Self::GetFeesWithCommitmentAndContextFut;
pub fn get_transaction_status_with_context(
        self,
        context: Context,
        signature: Signature
    ) -> Self::GetTransactionStatusWithContextFut;
pub fn get_slot_with_context(
        self,
        context: Context,
        commitment: CommitmentLevel
    ) -> Self::GetSlotWithContextFut;
pub fn process_transaction_with_commitment_and_context(
        self,
        context: Context,
        transaction: Transaction,
        commitment: CommitmentLevel
    ) -> Self::ProcessTransactionWithCommitmentAndContextFut;
pub fn get_account_with_commitment_and_context(
        self,
        context: Context,
        address: Pubkey,
        commitment: CommitmentLevel
    ) -> Self::GetAccountWithCommitmentAndContextFut; pub 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

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

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

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

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

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

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

Loading content...

Provided methods

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

Returns a serving function to use with tarpc::server::Server.

Loading content...

Implementors

Loading content...