#[repr(C)]pub struct YStateVector {
pub entries_count: u32,
pub client_ids: *mut u64,
pub clocks: *mut u32,
}Expand description
Struct representing a state of a document. It contains the last seen clocks for blocks submitted per any of the clients collaborating on document updates.
Fields§
§entries_count: u32Number of clients. It describes a length of both client_ids and clocks arrays.
client_ids: *mut u64Array of unique client identifiers (length is given in entries_count field). Each client
ID has corresponding clock attached, which can be found in clocks field under the same
index.
clocks: *mut u32Array of clocks (length is given in entries_count field) known for each client. Each clock
has a corresponding client identifier attached, which can be found in client_ids field
under the same index.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for YStateVector
impl RefUnwindSafe for YStateVector
impl !Send for YStateVector
impl !Sync for YStateVector
impl Unpin for YStateVector
impl UnwindSafe for YStateVector
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