pub enum IntegrityMode {
Full,
Metadata,
Structure,
}Expand description
How thoroughly P64TensorIndex::from_p64 verifies integrity.
Full tensor CRCs over a 360M–3B container dominate activate latency (toolkit probe:
~3 s after table CRC optim, previously ~42 s table-less). Convert and audit use
IntegrityMode::Full; hot activate may use IntegrityMode::Metadata after a
trusted convert wrote the container on this machine.
Variants§
Full
Metadata CRC + every tensor blob CRC (safest; slow on large models).
Metadata
Metadata CRC only; still bounds-checks tensor ranges (default activate).
Structure
Structure checks only — no CRC. Prefer only for tests / trusted mmap.
Implementations§
Source§impl IntegrityMode
impl IntegrityMode
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
QUALIA_P64_INTEGRITY=full|metadata|structure.
Default is [Metadata] (bounds + metadata CRC only): convert already sealed
per-tensor CRCs, and full re-scan dominated activate (~2.4 s → ~9 ms on SmolLM2).
Use full for audit / untrusted download; structure for tests only.
Trait Implementations§
Source§impl Clone for IntegrityMode
impl Clone for IntegrityMode
Source§fn clone(&self) -> IntegrityMode
fn clone(&self) -> IntegrityMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IntegrityMode
impl Debug for IntegrityMode
Source§impl Default for IntegrityMode
impl Default for IntegrityMode
Source§fn default() -> IntegrityMode
fn default() -> IntegrityMode
Source§impl PartialEq for IntegrityMode
impl PartialEq for IntegrityMode
Source§fn eq(&self, other: &IntegrityMode) -> bool
fn eq(&self, other: &IntegrityMode) -> bool
self and other values to be equal, and is used by ==.impl Copy for IntegrityMode
impl Eq for IntegrityMode
impl StructuralPartialEq for IntegrityMode
Auto Trait Implementations§
impl Freeze for IntegrityMode
impl RefUnwindSafe for IntegrityMode
impl Send for IntegrityMode
impl Sync for IntegrityMode
impl Unpin for IntegrityMode
impl UnsafeUnpin for IntegrityMode
impl UnwindSafe for IntegrityMode
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
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
§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
key and return true if they are equal.§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
§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
§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>
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>
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