pub struct YrsBinary { /* private fields */ }Expand description
A CRDT wrapper for Y-CRDT binary update data.
This wrapper implements the required Data and CRDT traits to allow
Y-CRDT binary updates to be stored and merged within the Eidetica system.
§Design
Y-CRDT represents document state as binary updates that can be efficiently merged and applied. This wrapper enables these binary updates to participate in Eidetica’s CRDT-based data storage and synchronization system.
§Merging Strategy
When two YrsBinary instances are merged, both updates are applied to a new
Y-CRDT document, and the resulting merged state is returned as a new binary
update. This ensures that Y-CRDT’s sophisticated conflict resolution algorithms
are preserved within Eidetica’s merge operations.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for YrsBinary
impl<'de> Deserialize<'de> for YrsBinary
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Data for YrsBinary
Auto Trait Implementations§
impl Freeze for YrsBinary
impl RefUnwindSafe for YrsBinary
impl Send for YrsBinary
impl Sync for YrsBinary
impl Unpin for YrsBinary
impl UnwindSafe for YrsBinary
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§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