Structs§
- Absolute
Position - Awareness
- Awareness
Peer Update - Change
Meta - Change
Modifier - Commit
Options - Configure
- Container
Diff - A diff of a container.
- ContainerID
AndDiff - Container
Path - Counter
Span - This struct supports reverse repr:
fromcan be less thanto. We need this because it’ll make merging deletions easier. - Cursor
- Cursor
With Pos - Diff
Batch - Diff
Event - Ephemeral
Store - Ephemeral
Store Event - First
Commit From Peer Payload - Fractional
Index - Wrapper for
loro::FractionalIndex - Frontiers
- Frontiers
OrID - ID
- It’s the unique ID of an Op represented by PeerID and Counter.
- IdLp
- It’s the unique ID of an Op represented by PeerID and Lamport clock. It’s used to define the total order of Ops.
- IdSpan
- This struct supports reverse repr: CounterSpan’s from can be less than to. But we should use it conservatively. We need this because it’ll make merging deletions easier.
- Import
Blob Metadata - Import
Status - Json
Change - Json
Future OpWrapper - JsonOp
- Json
Schema - Loro
Counter - LoroDoc
- Loro
List - LoroMap
- Loro
Movable List - Loro
Text - Loro
Tree - Loro
Unknown - MapDelta
- Path
Item - Peer
Info - PosQuery
Result - PreCommit
Callback Payload - Style
Config - Style
Config Map - Subscription
- A handle to a subscription created by GPUI. When dropped, the subscription is cancelled and the callback will no longer be invoked.
- Tree
Diff - Tree
Diff Item - TreeID
- Each node of movable tree has a unique
TreeIDgenerated by Loro. - Undo
Item Meta - Undo
Manager - Update
Options - Options for controlling the text update behavior.
- Version
Range - Version
Range Item - Version
Vector - Version
Vector Diff
Enums§
- Cannot
Find Relative Position - Change
Travel Error - ContainerID
- Container
Type - Diff
- Ephemeral
Event Trigger - Event
Trigger Kind - The kind of the event trigger.
- Expand
Type - Whether to expand the style when inserting new text around it.
- Index
- Json
Future Op - Json
List Op - Json
MapOp - Json
Movable List Op - Json
OpContent - Json
Path Error - Json
Text Op - Json
Tree Op - List
Diff Item - Loro
Encode Error - Loro
Error - Loro
Value - Ordering
- An
Orderingis the result of a comparison between two values. - PosType
- Side
- Text
Delta - Tree
External Diff - Tree
Parent Id - Undo
OrRedo - Update
Timeout Error
Constants§
- LORO_
VERSION - The version of the loro crate
Traits§
- Change
Ancestors Traveler - Container
IdLike - Ephemeral
Subscriber - First
Commit From Peer Callback - Json
Path Subscriber - Json
Schema Like - Local
Ephemeral Listener - Local
Update Callback - Loro
Value Like - OnPop
- OnPush
- PreCommit
Callback - Subscriber
- Unsubscriber
- Value
OrContainer
Functions§
- decode_
import_ blob_ meta - Decodes the metadata for an imported blob from the provided bytes.
- get_
version
Type Aliases§
- Counter
- If it’s the nth Op of a peer, the counter will be n.
- Lamport
- It’s the Lamport clock
- PeerID
- Unique id for each peer. It’s a random u64 by default.
- Subscribe
Json Path Callback - Callback used by
subscribe_jsonpath.