Skip to main content

Kind

Enum Kind 

Source
#[repr(u16)]
pub enum Kind {
Show 15 variants Pack = 1, Refs = 2, ControlBlob = 3, ControlDoc = 4, Secret = 5, LfsPut = 6, LfsDelete = 7, RepoStore = 8, Kek = 9, Append = 10, File = 11, SnapshotAt = 12, Redacted = 13, Erase = 14, Activity = 15,
}
Expand description

The kinds of transaction, one per mutation seam. The number is the wire and disk value; never renumber, only add.

Variants§

§

Pack = 1

A pack landed in a repository: blob = the pack bytes as the client sent them. Meta: Meta::Pack.

§

Refs = 2

One or more reference edits in a repository, every ref kind — heads, tags, notes, remotes, salvage, superseded, and HEAD. No blob. Meta: Meta::Refs.

§

ControlBlob = 3

A content-addressed blob of the control store (a document shard or a document root). Blob = the bytes; meta carries the sha-256 id.

§

ControlDoc = 4

A control-store document pointer moved (commit_doc): the catalog (repositories, visibility, tombstones), the identity table (principals, keys, grants, tokens, memberships, gates), PKI, mirrors, flow, pulls, policy, entitlements. No blob; the bytes arrived as Kind::ControlBlob entries before it.

§

Secret = 5

A sealed secret was written or tombstoned. Blob = the sealed bytes exactly as the secret store holds them (sealed with the box’s KEK).

§

LfsPut = 6

An LFS object landed. Blob = the object bytes. Meta: Meta::Lfs.

§

LfsDelete = 7

An LFS object was removed. No blob.

§

RepoStore = 8

A repository’s object store was created or purged on disk (the catalog row is a ControlDoc; this is the store beside it).

§

Kek = 9

The box’s key-encrypting key — the first frame of a primary’s log, so a restore into a fresh box can read every Secret frame after it. Blob = the 32 KEK bytes exactly as secrets.kek holds them. The twin holds it: a twin that held every sealed secret and not the key would be a backup of nothing.

§

Append = 10

One line appended to an append-only signed log under the data root (attestations, transparency heads, forge events, build records, membership). Blob = the line without its newline. Meta: Meta::Append.

§

File = 11

A whole document under the data root replaced or removed (replication.json, webhooks.json). Blob = the bytes. Meta: Meta::File.

§

SnapshotAt = 12

Never in a log: the terminator of a twin SNAPSHOT stream (Mirror.SnapshotFetch, Bootstrap.Restore). Every item before it is an entry of the kinds above with seq 0; this one says at which sequence the state they carry was taken. Meta: Meta::SnapshotAt.

§

Redacted = 13

A frame whose content was ERASED in place (Log::erase): it was a Pack, Refs, LfsPut or LfsDelete of a repository whose account was deleted. The meta is the original one (it still names the repository); the blob reads as empty and its bytes are gone from the file. Never appended — only ever written over a frame that is already there, so the sequence, the offsets and the twin’s gap rule stay exactly as they were. Applying one does nothing: the data it carried is what was deleted.

§

Erase = 14

An account’s data was deleted (owner ruling g-nonpay, 2026-09-29): every frame BEFORE this one of the repositories it names is erased (Log::erase) — on the primary when it appends it, on the twin when it stores it, on a box being restored when it replays it. No blob. Meta: Meta::Erase.

§

Activity = 15

Last-seen stamps (owner, 2026-10-21): the principals whose last sign-in or last operation moved since the previous flush, ONE frame per flush (crate::activity). Blob = JSON, principal id → stamps. Applied on the twin into the same control-database table; a snapshot carries the whole table as one item of this kind. Meta: Meta::Activity.

Implementations§

Source§

impl Kind

Source

pub fn from_u16(v: u16) -> Option<Self>

The disk value back to a kind. None for a value this build does not know — a newer primary’s frame; the twin still stores it.

Trait Implementations§

Source§

impl Clone for Kind

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Kind

Source§

impl Debug for Kind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Kind

Source§

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 Eq for Kind

Source§

impl Hash for Kind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Kind

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Kind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Kind

Auto Trait Implementations§

§

impl Freeze for Kind

§

impl RefUnwindSafe for Kind

§

impl Send for Kind

§

impl Sync for Kind

§

impl Unpin for Kind

§

impl UnsafeUnpin for Kind

§

impl UnwindSafe for Kind

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more