pub struct RpcConfig {
pub response_size_estimate: Option<u64>,
pub response_consensus: Option<ConsensusStrategy>,
}Expand description
Configures how to perform RPC HTTP calls.
Fields§
§response_size_estimate: Option<u64>Describes the expected (90th percentile) number of bytes in the HTTP response body.
This number should be less than MAX_PAYLOAD_SIZE.
response_consensus: Option<ConsensusStrategy>Specifies how the responses of the different RPC providers should be aggregated into a single response.
Trait Implementations§
Source§impl CandidType for RpcConfig
impl CandidType for RpcConfig
Source§impl<'de> Deserialize<'de> for RpcConfig
impl<'de> Deserialize<'de> for RpcConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<GetSlotRpcConfig> for RpcConfig
impl From<GetSlotRpcConfig> for RpcConfig
Source§fn from(config: GetSlotRpcConfig) -> Self
fn from(config: GetSlotRpcConfig) -> Self
Converts to this type from the input type.
Source§impl From<RpcConfig> for GetSlotRpcConfig
impl From<RpcConfig> for GetSlotRpcConfig
impl Eq for RpcConfig
impl StructuralPartialEq for RpcConfig
Auto Trait Implementations§
impl Freeze for RpcConfig
impl RefUnwindSafe for RpcConfig
impl Send for RpcConfig
impl Sync for RpcConfig
impl Unpin for RpcConfig
impl UnwindSafe for RpcConfig
Blanket Implementations§
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> 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