pub struct SurfpoolBankDataRpc;Trait Implementations§
Source§impl BankData for SurfpoolBankDataRpc
impl BankData for SurfpoolBankDataRpc
type Metadata = Option<RunloopContext>
Source§fn get_minimum_balance_for_rent_exemption(
&self,
meta: Self::Metadata,
data_len: usize,
_commitment: Option<CommitmentConfig>,
) -> Result<u64>
fn get_minimum_balance_for_rent_exemption( &self, meta: Self::Metadata, data_len: usize, _commitment: Option<CommitmentConfig>, ) -> Result<u64>
Returns the minimum balance required for rent exemption based on the given data length. Read more
Source§fn get_inflation_governor(
&self,
_meta: Self::Metadata,
_commitment: Option<CommitmentConfig>,
) -> Result<RpcInflationGovernor>
fn get_inflation_governor( &self, _meta: Self::Metadata, _commitment: Option<CommitmentConfig>, ) -> Result<RpcInflationGovernor>
Retrieves the inflation governor settings for the network. Read more
Source§fn get_inflation_rate(&self, _meta: Self::Metadata) -> Result<RpcInflationRate>
fn get_inflation_rate(&self, _meta: Self::Metadata) -> Result<RpcInflationRate>
Retrieves the current inflation rate for the network. Read more
Source§fn get_epoch_schedule(&self, _meta: Self::Metadata) -> Result<EpochSchedule>
fn get_epoch_schedule(&self, _meta: Self::Metadata) -> Result<EpochSchedule>
Retrieves the epoch schedule for the network. Read more
Source§fn get_slot_leader(
&self,
_meta: Self::Metadata,
_config: Option<RpcContextConfig>,
) -> Result<String>
fn get_slot_leader( &self, _meta: Self::Metadata, _config: Option<RpcContextConfig>, ) -> Result<String>
Retrieves the leader of the current slot. Read more
Source§fn get_slot_leaders(
&self,
_meta: Self::Metadata,
_start_slot: Slot,
_limit: u64,
) -> Result<Vec<String>>
fn get_slot_leaders( &self, _meta: Self::Metadata, _start_slot: Slot, _limit: u64, ) -> Result<Vec<String>>
Retrieves the leaders for a specified range of slots. Read more
Source§fn get_block_production(
&self,
_meta: Self::Metadata,
_config: Option<RpcBlockProductionConfig>,
) -> Result<RpcResponse<RpcBlockProduction>>
fn get_block_production( &self, _meta: Self::Metadata, _config: Option<RpcBlockProductionConfig>, ) -> Result<RpcResponse<RpcBlockProduction>>
Retrieves block production information for the specified validator identity or range of slots. 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 SurfpoolBankDataRpc
impl RefUnwindSafe for SurfpoolBankDataRpc
impl Send for SurfpoolBankDataRpc
impl Sync for SurfpoolBankDataRpc
impl Unpin for SurfpoolBankDataRpc
impl UnwindSafe for SurfpoolBankDataRpc
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> 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