pub enum DocumentSync<'a> {
Eager,
OnDemand,
Part {
base: &'a str,
index: u64,
},
Chunk {
base: &'a str,
number: u64,
},
ChainHead {
base: &'a str,
},
}Expand description
How a record reaches the devices of a workspace.
Variants§
Eager
Replayed to every joining device and followed live.
OnDemand
Sent to a device only once it opens the record.
Part
Part index of the chain base: eager while it is the chain’s head,
on-demand once a later part exists.
Chunk
Chunk number of the split record base, its 0 being the record
itself; always on-demand.
ChainHead
The head of the chain base, whichever part that is: opened, it
sends that part and follows the chain. No document lives under it.
Trait Implementations§
Source§impl<'a> Clone for DocumentSync<'a>
impl<'a> Clone for DocumentSync<'a>
impl<'a> Copy for DocumentSync<'a>
Source§impl<'a> Debug for DocumentSync<'a>
impl<'a> Debug for DocumentSync<'a>
impl<'a> Eq for DocumentSync<'a>
Source§impl<'a> PartialEq for DocumentSync<'a>
impl<'a> PartialEq for DocumentSync<'a>
impl<'a> StructuralPartialEq for DocumentSync<'a>
Auto Trait Implementations§
impl<'a> Forget for DocumentSync<'a>
impl<'a> Freeze for DocumentSync<'a>
impl<'a> Move for DocumentSync<'a>
impl<'a> RefUnwindSafe for DocumentSync<'a>
impl<'a> Send for DocumentSync<'a>
impl<'a> Sync for DocumentSync<'a>
impl<'a> Unpin for DocumentSync<'a>
impl<'a> UnsafeUnpin for DocumentSync<'a>
impl<'a> UnwindSafe for DocumentSync<'a>
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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