Expand description
Configuration object used by YDoc.
Fields
id: c_ulongGlobally unique 53-bit integer assigned to corresponding document replica as its identifier.
If two clients share the same id and will perform any updates, it will result in
unrecoverable document state corruption. The same thing may happen if the client restored
document state from snapshot, that didn’t contain all of that clients updates that were sent
to other peers.
encoding: c_intEncoding used by text editing operations on this document. It’s used to compute
YText/YXmlText insertion offsets and text lengths. Either:
Y_ENCODING_BYTESY_ENCODING_UTF16Y_ENCODING_UTF32
skip_gc: c_intBoolean flag used to determine if deleted blocks should be garbage collected or not during the transaction commits. Setting this value to 0 means GC will be performed.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for YOptions
impl Send for YOptions
impl Sync for YOptions
impl Unpin for YOptions
impl UnwindSafe for YOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more