Struct solana_balanced_client::SolanaClientRpc
source · pub struct SolanaClientRpc {
pub rpc_client: Arc<RpcClient>,
pub limits: Vec<SolanaClientRateLimit>,
}
Expand description
A single Solana RPC client. Includes its limits to calculate usage.
Fields
rpc_client: Arc<RpcClient>
limits: Vec<SolanaClientRateLimit>
The list of all limits applied to the RPC client. All limits must succeed in order to send a request.
Implementations
sourceimpl SolanaClientRpc
impl SolanaClientRpc
sourcepub fn add_limit(self, limit: SolanaClientRateLimit) -> Self
pub fn add_limit(self, limit: SolanaClientRateLimit) -> Self
Adds a SolanaClientRateLimit
to the list of limits.
sourcepub fn execute_endpoint(&mut self, endpoint: RpcRequest) -> bool
pub fn execute_endpoint(&mut self, endpoint: RpcRequest) -> bool
Process the execution of a Solana RPC endpoint.
sourcepub fn execute_endpoints(&mut self, endpoints: &[RpcRequest]) -> bool
pub fn execute_endpoints(&mut self, endpoints: &[RpcRequest]) -> bool
Process the execution of a Solana RPC endpoints.
Auto Trait Implementations
impl !RefUnwindSafe for SolanaClientRpc
impl Send for SolanaClientRpc
impl Sync for SolanaClientRpc
impl Unpin for SolanaClientRpc
impl !UnwindSafe for SolanaClientRpc
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