Struct solana_banks_client::TarpcClient
source · [−]pub struct TarpcClient(_);
Expand description
The client stub that makes RPC calls to the server. All request methods return Futures.
Implementations
sourceimpl BanksClient
impl BanksClient
sourcepub fn new<T>(
config: Config,
transport: T
) -> NewClient<BanksClient, RequestDispatch<BanksRequest, BanksResponse, T>>where
T: Transport<ClientMessage<BanksRequest>, Response<BanksResponse>>,
pub fn new<T>(
config: Config,
transport: T
) -> NewClient<BanksClient, RequestDispatch<BanksRequest, BanksResponse, T>>where
T: Transport<ClientMessage<BanksRequest>, Response<BanksResponse>>,
Returns a new client stub that sends requests over the given transport.
sourceimpl BanksClient
impl BanksClient
pub fn send_transaction_with_context(
&self,
ctx: Context,
transaction: Transaction
) -> impl Future<Output = Result<(), RpcError>>
pub fn get_fees_with_commitment_and_context(
&self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<(FeeCalculator, Hash, u64), RpcError>>
👎Deprecated since 1.9.0:
Please use get_fee_for_message_with_commitment_and_context
instead
pub fn get_transaction_status_with_context(
&self,
ctx: Context,
signature: Signature
) -> impl Future<Output = Result<Option<TransactionStatus>, RpcError>>
pub fn get_slot_with_context(
&self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<u64, RpcError>>
pub fn get_block_height_with_context(
&self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<u64, RpcError>>
pub fn process_transaction_with_preflight_and_commitment_and_context(
&self,
ctx: Context,
transaction: Transaction,
commitment: CommitmentLevel
) -> impl Future<Output = Result<BanksTransactionResultWithSimulation, RpcError>>
pub fn process_transaction_with_commitment_and_context(
&self,
ctx: Context,
transaction: Transaction,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Result<(), TransactionError>>, RpcError>>
pub fn get_account_with_commitment_and_context(
&self,
ctx: Context,
address: Pubkey,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Account>, RpcError>>
pub fn get_latest_blockhash_with_context(
&self,
ctx: Context
) -> impl Future<Output = Result<Hash, RpcError>>
pub fn get_latest_blockhash_with_commitment_and_context(
&self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<(Hash, u64)>, RpcError>>
pub fn get_fee_for_message_with_commitment_and_context(
&self,
ctx: Context,
commitment: CommitmentLevel,
message: Message
) -> impl Future<Output = Result<Option<u64>, RpcError>>
Trait Implementations
sourceimpl Clone for BanksClient
impl Clone for BanksClient
sourcefn clone(&self) -> BanksClient
fn clone(&self) -> BanksClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for BanksClient
impl Send for BanksClient
impl Sync for BanksClient
impl Unpin for BanksClient
impl !UnwindSafe for BanksClient
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more