pub enum SyncReplyAction<'a> {
FastForward {
rewinder: Rewinder<'a>,
metadata_applier: MetadataApplier,
},
HashCheck {
unwinder: Unwinder<'a>,
},
UnexpectedPier,
}
Expand description
The action to perform after calling Manager::apply_sync_reply
.
Variants§
FastForward
Rewind the public and current storage with rewinder
.
You only have to do this to the resources returned by the functions on
sync::Response
.
Call the methods on the sync::Response
to actually make changes to the
resources returned before using the rewinder
.
Fields
metadata_applier: MetadataApplier
Apply this to your public metadata.
HashCheck
Unwind the public and current storage with unwinder
, then
apply what’s returned the methods on the sync::Response
and then event::Unwinder::rewind
.
You only have to do this to the resources returned by the functions on
sync::Response
.
UnexpectedPier
An unexpected pier sent us a Self::HashCheck
sync message while we are fast forwarding.
Do nothing and ignore this message. Something’s wrong with someone else’s code.