#[repr(u8)]pub enum OperationKind {
Show 15 variants
RecordCreate = 1,
RecordDelete = 2,
LwwAssign = 3,
OrSetAdd = 4,
OrSetRemove = 5,
GrowOnlySetAdd = 6,
CounterIncrement = 7,
CounterDecrement = 8,
MultiValueAssign = 9,
ImmutableSet = 10,
OrderedListInsert = 11,
OrderedListRemove = 12,
FieldStateMerge = 13,
SchemaStage = 14,
SchemaActivate = 15,
}Expand description
The stable operation opcode applied by the materializer.
Variants§
RecordCreate = 1
Adds a record incarnation.
RecordDelete = 2
Removes observed record incarnations.
LwwAssign = 3
Assigns a causal LWW register.
OrSetAdd = 4
Adds an observed-remove set element.
OrSetRemove = 5
Removes observed set additions.
GrowOnlySetAdd = 6
Adds a grow-only set element.
CounterIncrement = 7
Increments a PN counter component.
CounterDecrement = 8
Decrements a PN counter component.
MultiValueAssign = 9
Assigns a multi-value register.
ImmutableSet = 10
Sets an immutable value.
OrderedListInsert = 11
Inserts an ordered-list element.
OrderedListRemove = 12
Removes an observed ordered-list element.
FieldStateMerge = 13
Merges a complete canonical CRDT field state.
SchemaStage = 14
Stages one target-schema record without changing visible state.
SchemaActivate = 15
Atomically activates a completely staged schema transition.
Trait Implementations§
Source§impl Clone for OperationKind
impl Clone for OperationKind
Source§fn clone(&self) -> OperationKind
fn clone(&self) -> OperationKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationKind
impl Debug for OperationKind
Source§impl PartialEq for OperationKind
impl PartialEq for OperationKind
Source§impl TryFrom<u8> for OperationKind
impl TryFrom<u8> for OperationKind
Source§type Error = CommitCodecError
type Error = CommitCodecError
The type returned in the event of a conversion error.
Source§fn try_from(
value: u8,
) -> Result<OperationKind, <OperationKind as TryFrom<u8>>::Error>
fn try_from( value: u8, ) -> Result<OperationKind, <OperationKind as TryFrom<u8>>::Error>
Performs the conversion.
impl Copy for OperationKind
impl Eq for OperationKind
impl StructuralPartialEq for OperationKind
Auto Trait Implementations§
impl Freeze for OperationKind
impl RefUnwindSafe for OperationKind
impl Send for OperationKind
impl Sync for OperationKind
impl Unpin for OperationKind
impl UnwindSafe for OperationKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more