Enum aper::sync::messages::MessageToClient
source · pub enum MessageToClient<S>where
S: StateMachine,{
SetState {
state: S,
version: StateVersionNumber,
},
PeerTransition {
transition: S::Transition,
version: StateVersionNumber,
},
ConfirmTransition {
transition_number: ClientTransitionNumber,
version: StateVersionNumber,
},
Conflict {
transition_number: ClientTransitionNumber,
conflict: S::Conflict,
},
}
Variants§
SetState
Set local state. Resets transition counter and empties local optimistic transitions.
PeerTransition
Apply a transition made by a peer.
ConfirmTransition
Acknowledge a transition made by this replica.
Conflict
State that a transition made by this replica caused a conflict and will not be processed.
Trait Implementations§
source§impl<S> Debug for MessageToClient<S>
impl<S> Debug for MessageToClient<S>
source§impl<'de, S> Deserialize<'de> for MessageToClient<S>
impl<'de, S> Deserialize<'de> for MessageToClient<S>
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
source§impl<S> PartialEq for MessageToClient<S>
impl<S> PartialEq for MessageToClient<S>
source§fn eq(&self, other: &MessageToClient<S>) -> bool
fn eq(&self, other: &MessageToClient<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<S> Serialize for MessageToClient<S>
impl<S> Serialize for MessageToClient<S>
impl<S> StructuralPartialEq for MessageToClient<S>where
S: StateMachine,
Auto Trait Implementations§
impl<S> Freeze for MessageToClient<S>
impl<S> RefUnwindSafe for MessageToClient<S>where
S: RefUnwindSafe,
<S as StateMachine>::Transition: RefUnwindSafe,
<S as StateMachine>::Conflict: RefUnwindSafe,
impl<S> Send for MessageToClient<S>
impl<S> Sync for MessageToClient<S>
impl<S> Unpin for MessageToClient<S>
impl<S> UnwindSafe for MessageToClient<S>where
S: UnwindSafe,
<S as StateMachine>::Transition: UnwindSafe,
<S as StateMachine>::Conflict: UnwindSafe,
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