pub struct MerkleCrdtSynchronizer;Expand description
The Zero-Allocation CRDT Synchronizer for the Qualia Engine. Operates strictly within pre-allocated stack limits for offline-first mesh syncs.
Implementations§
Source§impl MerkleCrdtSynchronizer
impl MerkleCrdtSynchronizer
Sourcepub fn extract_lamport_time(quin: &NQuin) -> u16
pub fn extract_lamport_time(quin: &NQuin) -> u16
Extracts the 12-bit Lamport clock integer from the 5th Vector (Metadata). The Lamport clock is embedded in bits 32-43.
Sourcepub fn diff_jump_tables<'a>(
local_table: &[JumpTableEntry],
remote_table: &[JumpTableEntry],
diff_buffer: &'a mut [u32],
) -> &'a [u32]
pub fn diff_jump_tables<'a>( local_table: &[JumpTableEntry], remote_table: &[JumpTableEntry], diff_buffer: &'a mut [u32], ) -> &'a [u32]
Compares two arrays of JumpTableEntry to find the divergent 128KB frames. Returns a stack-allocated slice of byte offsets indicating which blocks to pull. Operates in exactly $O(N)$ time with zero heap allocation.
Sourcepub fn resolve_frame_conflict(
local_frame: &mut [NQuin],
incoming_frame: &[NQuin],
compaction_policy_metadata: u16,
)
pub fn resolve_frame_conflict( local_frame: &mut [NQuin], incoming_frame: &[NQuin], compaction_policy_metadata: u16, )
Resolves structural conflicts between an incoming 128KB divergent frame and the local frame. Follows a strict selectable compaction policy triggered by the context metadata.
Auto Trait Implementations§
impl Freeze for MerkleCrdtSynchronizer
impl RefUnwindSafe for MerkleCrdtSynchronizer
impl Send for MerkleCrdtSynchronizer
impl Sync for MerkleCrdtSynchronizer
impl Unpin for MerkleCrdtSynchronizer
impl UnsafeUnpin for MerkleCrdtSynchronizer
impl UnwindSafe for MerkleCrdtSynchronizer
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>,
Aggregate shares in an MPC protocol.
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
§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