pub struct ChainRpcConfig {
pub rpc_url: String,
pub max_retries: u32,
pub backoff_ms: u64,
pub filter_addresses: Vec<String>,
}Expand description
Configuration for a single chain’s RPC connection.
Fields§
§rpc_url: StringWebSocket or HTTP RPC endpoint, e.g. “wss://mainnet.infura.io/ws/v3/…”
max_retries: u32Maximum retry attempts on connection failure
backoff_ms: u64Initial backoff in milliseconds
filter_addresses: Vec<String>Optional contract addresses to filter (empty = all contracts)
Trait Implementations§
Source§impl Clone for ChainRpcConfig
impl Clone for ChainRpcConfig
Source§fn clone(&self) -> ChainRpcConfig
fn clone(&self) -> ChainRpcConfig
Returns a duplicate 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 Debug for ChainRpcConfig
impl Debug for ChainRpcConfig
Source§impl<'de> Deserialize<'de> for ChainRpcConfig
impl<'de> Deserialize<'de> for ChainRpcConfig
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
Auto Trait Implementations§
impl Freeze for ChainRpcConfig
impl RefUnwindSafe for ChainRpcConfig
impl Send for ChainRpcConfig
impl Sync for ChainRpcConfig
impl Unpin for ChainRpcConfig
impl UnsafeUnpin for ChainRpcConfig
impl UnwindSafe for ChainRpcConfig
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