pub struct CrdtUpdate {
pub data: Vec<u8>,
pub client_id: Option<Box<str>>,
}Expand description
A binary CRDT update (serialized Yjs sync protocol message).
These updates are the fundamental unit of change in CRDT systems. They can be applied in any order and are commutative.
Fields§
§data: Vec<u8>Raw bytes of the update in Yjs sync protocol format
client_id: Option<Box<str>>Optional user/client ID that created this update
Implementations§
Trait Implementations§
Source§impl Clone for CrdtUpdate
impl Clone for CrdtUpdate
Source§fn clone(&self) -> CrdtUpdate
fn clone(&self) -> CrdtUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CrdtUpdate
impl Debug for CrdtUpdate
Source§impl<'de> Deserialize<'de> for CrdtUpdate
impl<'de> Deserialize<'de> for CrdtUpdate
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
Auto Trait Implementations§
impl Freeze for CrdtUpdate
impl RefUnwindSafe for CrdtUpdate
impl Send for CrdtUpdate
impl Sync for CrdtUpdate
impl Unpin for CrdtUpdate
impl UnsafeUnpin for CrdtUpdate
impl UnwindSafe for CrdtUpdate
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