Crate loro_ffi

Crate loro_ffi 

Source

Structs§

AbsolutePosition
Awareness
AwarenessPeerUpdate
ChangeMeta
ChangeModifier
CommitOptions
Configure
ContainerDiff
A diff of a container.
ContainerIDAndDiff
ContainerPath
CounterSpan
This struct supports reverse repr: from can be less than to. We need this because it’ll make merging deletions easier.
Cursor
CursorWithPos
DiffBatch
DiffEvent
EphemeralStore
EphemeralStoreEvent
FirstCommitFromPeerPayload
FractionalIndex
Wrapper for loro::FractionalIndex
Frontiers
FrontiersOrID
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.
ImportBlobMetadata
ImportStatus
JsonChange
JsonFutureOpWrapper
JsonOp
JsonSchema
LoroCounter
LoroDoc
LoroList
LoroMap
LoroMovableList
LoroText
LoroTree
LoroUnknown
MapDelta
PathItem
PeerInfo
PosQueryResult
PreCommitCallbackPayload
StyleConfig
StyleConfigMap
Subscription
A handle to a subscription created by GPUI. When dropped, the subscription is cancelled and the callback will no longer be invoked.
TreeDiff
TreeDiffItem
TreeID
Each node of movable tree has a unique TreeID generated by Loro.
UndoItemMeta
UndoManager
UpdateOptions
Options for controlling the text update behavior.
VersionRange
VersionRangeItem
VersionVector
VersionVectorDiff

Enums§

CannotFindRelativePosition
ChangeTravelError
ContainerID
ContainerType
Diff
EphemeralEventTrigger
EventTriggerKind
The kind of the event trigger.
ExpandType
Whether to expand the style when inserting new text around it.
Index
JsonFutureOp
JsonListOp
JsonMapOp
JsonMovableListOp
JsonOpContent
JsonPathError
JsonTextOp
JsonTreeOp
ListDiffItem
LoroEncodeError
LoroError
LoroValue
Ordering
An Ordering is the result of a comparison between two values.
PosType
Side
TextDelta
TreeExternalDiff
TreeParentId
UndoOrRedo
UpdateTimeoutError

Constants§

LORO_VERSION
The version of the loro crate

Traits§

ChangeAncestorsTraveler
ContainerIdLike
EphemeralSubscriber
FirstCommitFromPeerCallback
JsonPathSubscriber
JsonSchemaLike
LocalEphemeralListener
LocalUpdateCallback
LoroValueLike
OnPop
OnPush
PreCommitCallback
Subscriber
Unsubscriber
ValueOrContainer

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.
SubscribeJsonPathCallback
Callback used by subscribe_jsonpath.