Skip to main content

SegmentType

Enum SegmentType 

Source
#[repr(u8)]
pub enum SegmentType {
Show 20 variants Invalid = 0, Vec = 1, Index = 2, Overlay = 3, Journal = 4, Manifest = 5, Quant = 6, Meta = 7, Hot = 8, Sketch = 9, Witness = 10, Profile = 11, Crypto = 12, MetaIdx = 13, Kernel = 14, Ebpf = 15, CowMap = 32, Refcount = 33, Membership = 34, Delta = 35,
}
Expand description

Identifies the kind of data stored in a segment.

Values 0x00 and 0xF0..=0xFF are reserved.

Variants§

§

Invalid = 0

Not a valid segment (uninitialized / zeroed region).

§

Vec = 1

Raw vector payloads (the actual embeddings).

§

Index = 2

HNSW adjacency lists, entry points, routing tables.

§

Overlay = 3

Graph overlay deltas, partition updates, min-cut witnesses.

§

Journal = 4

Metadata mutations (label changes, deletions, moves).

§

Manifest = 5

Segment directory, hotset pointers, epoch state.

§

Quant = 6

Quantization dictionaries and codebooks.

§

Meta = 7

Arbitrary key-value metadata (tags, provenance, lineage).

§

Hot = 8

Temperature-promoted hot data (vectors + neighbors).

§

Sketch = 9

Access counter sketches for temperature decisions.

§

Witness = 10

Capability manifests, proof of computation, audit trails.

§

Profile = 11

Domain profile declarations (RVDNA, RVText, etc.).

§

Crypto = 12

Key material, signature chains, certificate anchors.

§

MetaIdx = 13

Metadata inverted indexes for filtered search.

§

Kernel = 14

Embedded kernel / unikernel image for self-booting.

§

Ebpf = 15

Embedded eBPF program for kernel fast path.

§

CowMap = 32

COW cluster mapping.

§

Refcount = 33

Cluster reference counts.

§

Membership = 34

Vector membership filter.

§

Delta = 35

Sparse delta patches.

Trait Implementations§

Source§

impl Clone for SegmentType

Source§

fn clone(&self) -> SegmentType

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for SegmentType

Source§

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

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

impl Hash for SegmentType

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 SegmentType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u8> for SegmentType

Source§

type Error = u8

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

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for SegmentType

Source§

impl Eq for SegmentType

Source§

impl StructuralPartialEq for SegmentType

Auto Trait Implementations§

Blanket Implementations§

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<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<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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.