pub struct MultiChainConfig {
pub chains: Vec<IndexerConfig>,
pub max_concurrent_chains: usize,
pub health_check_interval: Duration,
pub restart_on_error: bool,
pub restart_delay: Duration,
}Expand description
Configuration for the multi-chain coordinator.
Fields§
§chains: Vec<IndexerConfig>One IndexerConfig per chain to manage.
max_concurrent_chains: usizeMaximum number of chains that may run concurrently. 0 means unlimited
(all chains run simultaneously).
health_check_interval: DurationHow often the coordinator evaluates chain health. Default: 30 s.
restart_on_error: boolIf true, a chain that enters IndexerState::Error is automatically
restarted after restart_delay. Default: true.
restart_delay: DurationDelay before automatically restarting a failed chain. Default: 5 s.
Implementations§
Trait Implementations§
Source§impl Clone for MultiChainConfig
impl Clone for MultiChainConfig
Source§fn clone(&self) -> MultiChainConfig
fn clone(&self) -> MultiChainConfig
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 MultiChainConfig
impl Debug for MultiChainConfig
Source§impl Default for MultiChainConfig
impl Default for MultiChainConfig
Source§impl<'de> Deserialize<'de> for MultiChainConfig
impl<'de> Deserialize<'de> for MultiChainConfig
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 MultiChainConfig
impl RefUnwindSafe for MultiChainConfig
impl Send for MultiChainConfig
impl Sync for MultiChainConfig
impl Unpin for MultiChainConfig
impl UnsafeUnpin for MultiChainConfig
impl UnwindSafe for MultiChainConfig
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