Struct loro_internal::event::DocDiff
source · pub struct DocDiff {
pub from: Frontiers,
pub to: Frontiers,
pub origin: InternalString,
pub by: EventTriggerKind,
pub diff: Vec<ContainerDiff>,
}
Expand description
It’s the exposed event type. It’s exposed to the user. The user can use this to apply the diff to their local state.
DocDiff may include the diff that calculated from several transactions and imports. They all should have the same origin and local flag.
Fields§
§from: Frontiers
§to: Frontiers
§origin: InternalString
§by: EventTriggerKind
§diff: Vec<ContainerDiff>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocDiff
impl RefUnwindSafe for DocDiff
impl Send for DocDiff
impl Sync for DocDiff
impl Unpin for DocDiff
impl UnwindSafe for DocDiff
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