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,
include_snapshots: bool,
include_tvl: 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, include_snapshots: bool, include_tvl: bool, rpc_client: R, deltas_client: D, timeout: u64, ) -> Self
Creates a new state synchronizer.
Trait Implementations§
Source§impl<R: Clone + RPCClient, D: Clone + DeltasClient> Clone for ProtocolStateSynchronizer<R, D>
impl<R: Clone + RPCClient, D: Clone + DeltasClient> Clone for ProtocolStateSynchronizer<R, D>
Source§fn clone(&self) -> ProtocolStateSynchronizer<R, D>
fn clone(&self) -> ProtocolStateSynchronizer<R, D>
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<R, D> StateSynchronizer for ProtocolStateSynchronizer<R, D>
impl<R, D> StateSynchronizer for ProtocolStateSynchronizer<R, D>
fn initialize<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = SyncResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = SyncResult<(JoinHandle<SyncResult<()>>, Receiver<StateSyncMessage>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = SyncResult<(JoinHandle<SyncResult<()>>, Receiver<StateSyncMessage>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Starts the state synchronization.
Auto Trait Implementations§
impl<R, D> Freeze for ProtocolStateSynchronizer<R, D>
impl<R, D> !RefUnwindSafe for ProtocolStateSynchronizer<R, D>
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>
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