pub struct Options {
pub client_id: ClientID,
pub offset_kind: OffsetKind,
pub skip_gc: bool,
}
Expand description
Configuration options of Doc instance.
Fields
client_id: ClientID
Globally unique 53-bit long client identifier.
offset_kind: OffsetKind
How to we count offsets and lengths used in text operations.
skip_gc: bool
Determines if transactions commits should try to perform GC-ing of deleted items.
Implementations
sourceimpl Options
impl Options
pub fn with_client_id(client_id: ClientID) -> Self
Trait Implementations
impl Copy for Options
impl Eq for Options
impl StructuralEq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more