[][src]Struct state_synchronizer::StateSyncClient

pub struct StateSyncClient { /* fields omitted */ }

Implementations

impl StateSyncClient[src]

pub fn new(coordinator_sender: UnboundedSender<CoordinatorMessage>) -> Self[src]

pub fn sync_to(
    &self,
    target: LedgerInfoWithSignatures
) -> impl Future<Output = Result<()>>
[src]

Sync validator's state to target. In case of success (Result::Ok) the LI of storage is at the given target. In case of failure (Result::Error) the LI of storage remains unchanged, and the validator can assume there were no modifications to the storage made. It is up to state synchronizer to decide about the specific criteria for the failure (e.g., lack of progress with all of the peer validators).

pub fn commit(
    &self,
    committed_txns: Vec<Transaction>,
    reconfig_events: Vec<ContractEvent>
) -> impl Future<Output = Result<()>>
[src]

Notifies state synchronizer about new version

pub fn get_state(&self) -> impl Future<Output = Result<SynchronizerState>>[src]

Returns information about StateSynchronizer internal state

Auto Trait Implementations

impl !RefUnwindSafe for StateSyncClient

impl Send for StateSyncClient

impl Sync for StateSyncClient

impl Unpin for StateSyncClient

impl !UnwindSafe for StateSyncClient

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>,