Struct solana_banks_interface::BanksClient
source · [−]pub struct BanksClient<C = Channel<BanksRequest, BanksResponse>>(_);
Expand description
The client stub that makes RPC calls to the server. Exposes a Future interface.
Implementations
sourceimpl BanksClient
impl BanksClient
sourcepub fn new<T>(
config: Config,
transport: T
) -> NewClient<Self, RequestDispatch<BanksRequest, BanksResponse, T>> where
T: Transport<ClientMessage<BanksRequest>, Response<BanksResponse>>,
pub fn new<T>(
config: Config,
transport: T
) -> NewClient<Self, RequestDispatch<BanksRequest, BanksResponse, T>> where
T: Transport<ClientMessage<BanksRequest>, Response<BanksResponse>>,
Returns a new client stub that sends requests over the given transport.
sourceimpl<C> BanksClient<C> where
for<'a> C: Client<'a, BanksRequest, Response = BanksResponse>,
impl<C> BanksClient<C> where
for<'a> C: Client<'a, BanksRequest, Response = BanksResponse>,
pub fn send_transaction_with_context(
&mut self,
ctx: Context,
transaction: Transaction
) -> impl Future<Output = Result<()>> + '_
pub fn get_fees_with_commitment_and_context(
&mut self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<(FeeCalculator, Hash, Slot)>> + '_
pub fn get_transaction_status_with_context(
&mut self,
ctx: Context,
signature: Signature
) -> impl Future<Output = Result<Option<TransactionStatus>>> + '_
pub fn get_slot_with_context(
&mut self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Slot>> + '_
pub fn get_block_height_with_context(
&mut self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<u64>> + '_
pub fn process_transaction_with_commitment_and_context(
&mut self,
ctx: Context,
transaction: Transaction,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Result<()>>>> + '_
pub fn get_account_with_commitment_and_context(
&mut self,
ctx: Context,
address: Pubkey,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Account>>> + '_
Trait Implementations
sourceimpl<C: Clone> Clone for BanksClient<C>
impl<C: Clone> Clone for BanksClient<C>
sourcefn clone(&self) -> BanksClient<C>
fn clone(&self) -> BanksClient<C>
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
sourceimpl<C: Debug> Debug for BanksClient<C>
impl<C: Debug> Debug for BanksClient<C>
sourceimpl<C> From<C> for BanksClient<C> where
for<'a> C: Client<'a, BanksRequest, Response = BanksResponse>,
impl<C> From<C> for BanksClient<C> where
for<'a> C: Client<'a, BanksRequest, Response = BanksResponse>,
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
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more