pub struct SurfpoolMinimalRpc;Trait Implementations§
Source§impl Clone for SurfpoolMinimalRpc
impl Clone for SurfpoolMinimalRpc
Source§fn clone(&self) -> SurfpoolMinimalRpc
fn clone(&self) -> SurfpoolMinimalRpc
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 moreSource§impl Minimal for SurfpoolMinimalRpc
impl Minimal for SurfpoolMinimalRpc
type Metadata = Option<RunloopContext>
Source§fn get_balance(
&self,
meta: Self::Metadata,
pubkey_str: String,
_config: Option<RpcContextConfig>,
) -> BoxFuture<Result<RpcResponse<u64>>>
fn get_balance( &self, meta: Self::Metadata, pubkey_str: String, _config: Option<RpcContextConfig>, ) -> BoxFuture<Result<RpcResponse<u64>>>
Returns the balance (in lamports) of the account at the provided public key. Read more
Source§fn get_epoch_info(
&self,
meta: Self::Metadata,
_config: Option<RpcContextConfig>,
) -> Result<EpochInfo>
fn get_epoch_info( &self, meta: Self::Metadata, _config: Option<RpcContextConfig>, ) -> Result<EpochInfo>
Returns information about the current epoch. Read more
Source§fn get_genesis_hash(&self, _meta: Self::Metadata) -> Result<String>
fn get_genesis_hash(&self, _meta: Self::Metadata) -> Result<String>
Returns the genesis hash of the blockchain. Read more
Source§fn get_health(&self, _meta: Self::Metadata) -> Result<String>
fn get_health(&self, _meta: Self::Metadata) -> Result<String>
Returns the health status of the blockchain node. Read more
Source§fn get_identity(&self, _meta: Self::Metadata) -> Result<RpcIdentity>
fn get_identity(&self, _meta: Self::Metadata) -> Result<RpcIdentity>
Returns the identity (public key) of the node. Read more
Source§fn get_slot(
&self,
meta: Self::Metadata,
_config: Option<RpcContextConfig>,
) -> Result<Slot>
fn get_slot( &self, meta: Self::Metadata, _config: Option<RpcContextConfig>, ) -> Result<Slot>
Returns the current slot of the ledger. Read more
Source§fn get_block_height(
&self,
meta: Self::Metadata,
_config: Option<RpcContextConfig>,
) -> Result<u64>
fn get_block_height( &self, meta: Self::Metadata, _config: Option<RpcContextConfig>, ) -> Result<u64>
Returns the current block height. Read more
Source§fn get_highest_snapshot_slot(
&self,
_meta: Self::Metadata,
) -> Result<RpcSnapshotSlotInfo>
fn get_highest_snapshot_slot( &self, _meta: Self::Metadata, ) -> Result<RpcSnapshotSlotInfo>
Returns information about the highest snapshot slot. Read more
Source§fn get_transaction_count(
&self,
meta: Self::Metadata,
_config: Option<RpcContextConfig>,
) -> Result<u64>
fn get_transaction_count( &self, meta: Self::Metadata, _config: Option<RpcContextConfig>, ) -> Result<u64>
Returns the total number of transactions processed by the blockchain. Read more
Source§fn get_version(&self, _: Self::Metadata) -> Result<SurfpoolRpcVersionInfo>
fn get_version(&self, _: Self::Metadata) -> Result<SurfpoolRpcVersionInfo>
Returns the current version of the server or application. Read more
Source§fn get_vote_accounts(
&self,
_meta: Self::Metadata,
_config: Option<RpcGetVoteAccountsConfig>,
) -> Result<RpcVoteAccountStatus>
fn get_vote_accounts( &self, _meta: Self::Metadata, _config: Option<RpcGetVoteAccountsConfig>, ) -> Result<RpcVoteAccountStatus>
Returns vote account information. Read more
Source§fn get_leader_schedule(
&self,
_meta: Self::Metadata,
_options: Option<RpcLeaderScheduleConfigWrapper>,
_config: Option<RpcLeaderScheduleConfig>,
) -> Result<Option<RpcLeaderSchedule>>
fn get_leader_schedule( &self, _meta: Self::Metadata, _options: Option<RpcLeaderScheduleConfigWrapper>, _config: Option<RpcLeaderScheduleConfig>, ) -> Result<Option<RpcLeaderSchedule>>
Returns the leader schedule for the given configuration or slot. 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.Auto Trait Implementations§
impl Freeze for SurfpoolMinimalRpc
impl RefUnwindSafe for SurfpoolMinimalRpc
impl Send for SurfpoolMinimalRpc
impl Sync for SurfpoolMinimalRpc
impl Unpin for SurfpoolMinimalRpc
impl UnwindSafe for SurfpoolMinimalRpc
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