pub enum RegistryEvent {
Put {
seq: i64,
record: RepoRecord,
},
Mutation {
seq: i64,
repo_id: String,
},
Removed {
seq: i64,
repo_id: String,
},
}Expand description
The registry mutation event — the durable change feed’s payload.
Every variant carries the mutation’s sequence number: the
consumer’s per-seq idempotency key and the reconcile watermark’s
currency. The Mutation variant is the per-push mutation-marker
event’s kind (ADR-019 §7 — pushes do not modify RepoRecord; the
marker write’s announce carries the bare mutation).
Variants§
Put
A record was created or replaced (the put/update mutations).
Mutation
The repo mutated without a record change — the per-push mutation-marker write’s event (the watermark leg that drives reconcile and diff-driven replication on every push).
Removed
A record was removed (the removal consumed a sequence; the row is gone — the event is the removal’s only row-carrying trace).
Implementations§
Source§impl RegistryEvent
impl RegistryEvent
Sourcepub fn decode_event(event: &StreamEvent) -> Option<RegistryEvent>
pub fn decode_event(event: &StreamEvent) -> Option<RegistryEvent>
Decode a feed event. Undecodable payloads (a foreign producer on
the stream, codec drift) yield None — the consumer skips and
checkpoints past them rather than wedging its cursor on the
poison event.
Trait Implementations§
Source§impl Clone for RegistryEvent
impl Clone for RegistryEvent
Source§impl Debug for RegistryEvent
impl Debug for RegistryEvent
Source§impl<'de> Deserialize<'de> for RegistryEvent
impl<'de> Deserialize<'de> for RegistryEvent
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>,
impl Eq for RegistryEvent
Source§impl PartialEq for RegistryEvent
impl PartialEq for RegistryEvent
Source§impl Serialize for RegistryEvent
impl Serialize for RegistryEvent
impl StructuralPartialEq for RegistryEvent
Auto Trait Implementations§
impl Freeze for RegistryEvent
impl RefUnwindSafe for RegistryEvent
impl Send for RegistryEvent
impl Sync for RegistryEvent
impl Unpin for RegistryEvent
impl UnsafeUnpin for RegistryEvent
impl UnwindSafe for RegistryEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.