pub struct SurfpoolAccountsDataRpc;Trait Implementations§
Source§impl AccountsData for SurfpoolAccountsDataRpc
impl AccountsData for SurfpoolAccountsDataRpc
type Metadata = Option<RunloopContext>
Source§fn get_account_info(
&self,
meta: Self::Metadata,
pubkey_str: String,
config: Option<RpcAccountInfoConfig>,
) -> BoxFuture<Result<RpcResponse<Option<UiAccount>>>>
fn get_account_info( &self, meta: Self::Metadata, pubkey_str: String, config: Option<RpcAccountInfoConfig>, ) -> BoxFuture<Result<RpcResponse<Option<UiAccount>>>>
Returns detailed information about an account given its public key. Read more
Source§fn get_multiple_accounts(
&self,
meta: Self::Metadata,
pubkeys_str: Vec<String>,
config: Option<RpcAccountInfoConfig>,
) -> BoxFuture<Result<RpcResponse<Vec<Option<UiAccount>>>>>
fn get_multiple_accounts( &self, meta: Self::Metadata, pubkeys_str: Vec<String>, config: Option<RpcAccountInfoConfig>, ) -> BoxFuture<Result<RpcResponse<Vec<Option<UiAccount>>>>>
Returns account information for multiple public keys in a single call. Read more
Source§fn get_block_commitment(
&self,
_meta: Self::Metadata,
_block: Slot,
) -> Result<RpcBlockCommitment<BlockCommitmentArray>>
fn get_block_commitment( &self, _meta: Self::Metadata, _block: Slot, ) -> Result<RpcBlockCommitment<BlockCommitmentArray>>
Returns commitment levels for a given block (slot). Read more
Source§fn get_token_account_balance(
&self,
meta: Self::Metadata,
pubkey_str: String,
commitment: Option<CommitmentConfig>,
) -> BoxFuture<Result<RpcResponse<Option<UiTokenAmount>>>>
fn get_token_account_balance( &self, meta: Self::Metadata, pubkey_str: String, commitment: Option<CommitmentConfig>, ) -> BoxFuture<Result<RpcResponse<Option<UiTokenAmount>>>>
Returns the balance of a token account, given its public key. Read more
Source§fn get_token_supply(
&self,
_meta: Self::Metadata,
_mint_str: String,
_commitment: Option<CommitmentConfig>,
) -> Result<RpcResponse<UiTokenAmount>>
fn get_token_supply( &self, _meta: Self::Metadata, _mint_str: String, _commitment: Option<CommitmentConfig>, ) -> Result<RpcResponse<UiTokenAmount>>
Returns the total supply of a token, given its mint address. Read more
Source§fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
Create an
IoDelegate, wiring rpc calls to the trait methods.Source§impl Clone for SurfpoolAccountsDataRpc
impl Clone for SurfpoolAccountsDataRpc
Source§fn clone(&self) -> SurfpoolAccountsDataRpc
fn clone(&self) -> SurfpoolAccountsDataRpc
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SurfpoolAccountsDataRpc
impl RefUnwindSafe for SurfpoolAccountsDataRpc
impl Send for SurfpoolAccountsDataRpc
impl Sync for SurfpoolAccountsDataRpc
impl Unpin for SurfpoolAccountsDataRpc
impl UnwindSafe for SurfpoolAccountsDataRpc
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more