gleamunison/sync
Values
pub fn new_sync_state() -> sync_types.SyncState
pub fn pull_sync(
state: sync_types.SyncState,
peer: sync_types.PeerId,
codebase: codebase.Codebase,
) -> Result(
#(
sync_types.SyncState,
codebase.Codebase,
List(identity.DefinitionRef),
),
sync_types.SyncError,
)
pub fn push_sync(
state: sync_types.SyncState,
peer: sync_types.PeerId,
refs: List(identity.DefinitionRef),
adapter: storage.StorageAdapter,
) -> Result(#(sync_types.SyncState, Int), sync_types.SyncError)