pub enum SyncDirective {
Continue,
UpgradeRequired {
minimum: ProtocolVersion,
current: ProtocolVersion,
},
ResyncRequired {
reason: ResyncReason,
},
AuthorityChanged {
authority_id: AuthorityId,
previous_epoch: AuthorityEpoch,
current_epoch: AuthorityEpoch,
},
}Expand description
Typed server instruction accompanying every synchronization response.
Variants§
Continue
Reconcile this normal incremental response.
UpgradeRequired
This client protocol falls outside the server compatibility window.
Fields
§
minimum: ProtocolVersionOldest protocol accepted by the server.
§
current: ProtocolVersionCurrent protocol emitted by the server.
ResyncRequired
Discard incremental progress only through the normal atomic bootstrap flow.
Fields
§
reason: ResyncReasonStable reason suitable for application policy and diagnostics.
AuthorityChanged
The authority timeline advanced and incremental replay must freeze before rebootstrap.
Fields
Logical authority that owns the replacement timeline.
§
previous_epoch: AuthorityEpochEpoch supplied by the rejected client cursor.
§
current_epoch: AuthorityEpochCurrent epoch that must be bootstrapped.
Trait Implementations§
Source§impl Clone for SyncDirective
impl Clone for SyncDirective
Source§fn clone(&self) -> SyncDirective
fn clone(&self) -> SyncDirective
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SyncDirective
Source§impl Debug for SyncDirective
impl Debug for SyncDirective
Source§impl Default for SyncDirective
impl Default for SyncDirective
Source§fn default() -> SyncDirective
fn default() -> SyncDirective
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SyncDirective
impl<'de> Deserialize<'de> for SyncDirective
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SyncDirective
Source§impl PartialEq for SyncDirective
impl PartialEq for SyncDirective
Source§impl Serialize for SyncDirective
impl Serialize for SyncDirective
impl StructuralPartialEq for SyncDirective
Auto Trait Implementations§
impl Freeze for SyncDirective
impl RefUnwindSafe for SyncDirective
impl Send for SyncDirective
impl Sync for SyncDirective
impl Unpin for SyncDirective
impl UnsafeUnpin for SyncDirective
impl UnwindSafe for SyncDirective
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