pub struct ProtocolStateSynchronizer<R: RPCClient, D: DeltasClient> { /* private fields */ }Implementations§
Source§impl<R, D> ProtocolStateSynchronizer<R, D>
impl<R, D> ProtocolStateSynchronizer<R, D>
Sourcepub fn new(
extractor_id: ExtractorIdentity,
retrieve_balances: bool,
component_filter: ComponentFilter,
max_retries: u64,
retry_cooldown: Duration,
include_snapshots: bool,
include_tvl: bool,
compression: bool,
rpc_client: R,
deltas_client: D,
timeout: u64,
) -> Self
pub fn new( extractor_id: ExtractorIdentity, retrieve_balances: bool, component_filter: ComponentFilter, max_retries: u64, retry_cooldown: Duration, include_snapshots: bool, include_tvl: bool, compression: bool, rpc_client: R, deltas_client: D, timeout: u64, ) -> Self
Creates a new state synchronizer.
Trait Implementations§
Source§impl<R, D> StateSynchronizer for ProtocolStateSynchronizer<R, D>
impl<R, D> StateSynchronizer for ProtocolStateSynchronizer<R, D>
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = SyncResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn start<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = (SynchronizerTaskHandle, Receiver<SyncResult<StateSyncMessage<BlockHeader>>>)> + Send + 'async_trait>>where
Self: 'async_trait,
fn start<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = (SynchronizerTaskHandle, Receiver<SyncResult<StateSyncMessage<BlockHeader>>>)> + Send + 'async_trait>>where
Self: 'async_trait,
Starts the state synchronization, consuming the synchronizer.
Returns a handle for controlling the running task and a receiver for messages.
Auto Trait Implementations§
impl<R, D> !Freeze for ProtocolStateSynchronizer<R, D>
impl<R, D> RefUnwindSafe for ProtocolStateSynchronizer<R, D>where
R: RefUnwindSafe,
D: RefUnwindSafe,
impl<R, D> Send for ProtocolStateSynchronizer<R, D>where
D: Send,
impl<R, D> Sync for ProtocolStateSynchronizer<R, D>where
D: Sync,
impl<R, D> Unpin for ProtocolStateSynchronizer<R, D>
impl<R, D> UnwindSafe for ProtocolStateSynchronizer<R, D>where
R: UnwindSafe,
D: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more