Struct solana_banks_client::TarpcClient [−][src]
pub struct TarpcClient<C = Channel<BanksRequest, BanksResponse>>(_);
Expand description
The client stub that makes RPC calls to the server. Exposes a Future interface.
Implementations
pub fn new<T>(
config: Config,
transport: T
) -> NewClient<BanksClient<Channel<BanksRequest, BanksResponse>>, RequestDispatch<BanksRequest, BanksResponse, T>> where
T: Transport<ClientMessage<BanksRequest>, Response<BanksResponse>>,
pub fn new<T>(
config: Config,
transport: T
) -> NewClient<BanksClient<Channel<BanksRequest, BanksResponse>>, RequestDispatch<BanksRequest, BanksResponse, T>> where
T: Transport<ClientMessage<BanksRequest>, Response<BanksResponse>>,
Returns a new client stub that sends requests over the given transport.
pub fn send_transaction_with_context(
&mut self,
ctx: Context,
transaction: Transaction
) -> impl Future<Output = Result<(), Error>>
pub fn get_fees_with_commitment_and_context(
&mut self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<(FeeCalculator, Hash, u64), Error>>
pub fn get_transaction_status_with_context(
&mut self,
ctx: Context,
signature: Signature
) -> impl Future<Output = Result<Option<TransactionStatus>, Error>>
pub fn get_slot_with_context(
&mut self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<u64, Error>>
pub fn get_block_height_with_context(
&mut self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<u64, Error>>
pub fn process_transaction_with_commitment_and_context(
&mut self,
ctx: Context,
transaction: Transaction,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Result<(), TransactionError>>, Error>>
pub fn get_account_with_commitment_and_context(
&mut self,
ctx: Context,
address: Pubkey,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Account>, Error>>
Trait Implementations
impl<C> From<C> for BanksClient<C> where
C: for<'a> Client<'a, BanksRequest, Response = BanksResponse>,
impl<C> From<C> for BanksClient<C> where
C: for<'a> Client<'a, BanksRequest, Response = BanksResponse>,
Performs the conversion.
Auto Trait Implementations
impl<C> RefUnwindSafe for BanksClient<C> where
C: RefUnwindSafe,
impl<C> Send for BanksClient<C> where
C: Send,
impl<C> Sync for BanksClient<C> where
C: Sync,
impl<C> Unpin for BanksClient<C> where
C: Unpin,
impl<C> UnwindSafe for BanksClient<C> where
C: UnwindSafe,
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more