[][src]Struct state_synchronizer::StateSynchronizer

pub struct StateSynchronizer { /* fields omitted */ }

Implementations

impl StateSynchronizer[src]

pub fn bootstrap(
    network: Vec<(NodeNetworkId, StateSynchronizerSender, StateSynchronizerEvents)>,
    state_sync_to_mempool_sender: Sender<CommitNotification>,
    storage: Arc<dyn DbReader>,
    executor: Box<dyn ChunkExecutor>,
    config: &NodeConfig,
    waypoint: Waypoint,
    reconfig_event_subscriptions: Vec<ReconfigSubscription>
) -> Self
[src]

Setup state synchronizer. spawns coordinator and downloader routines on executor

pub fn bootstrap_with_executor_proxy<E: ExecutorProxyTrait + 'static>(
    runtime: Runtime,
    network: Vec<(NodeNetworkId, StateSynchronizerSender, StateSynchronizerEvents)>,
    state_sync_to_mempool_sender: Sender<CommitNotification>,
    role: RoleType,
    waypoint: Waypoint,
    state_sync_config: &StateSyncConfig,
    upstream_config: UpstreamConfig,
    executor_proxy: E
) -> Self
[src]

pub fn create_client(&self) -> Arc<StateSyncClient>[src]

pub async fn wait_until_initialized<'_>(&'_ self) -> Result<()>[src]

The function returns a future that is fulfilled when the state synchronizer is caught up with the waypoint specified in the local config.

Auto Trait Implementations

impl !RefUnwindSafe for StateSynchronizer

impl Send for StateSynchronizer

impl Sync for StateSynchronizer

impl Unpin for StateSynchronizer

impl !UnwindSafe for StateSynchronizer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,