Crate cooklang_sync_client

Source

Modules§

Functions§

  • Synchronous alias to async run function. Intended to used by external (written in other languages) callers.
  • Runs local files watch and sync from/to remote continuously.
  • Runs one-off download of updates from remote server. Note, it’s not very efficient as requires to re-initialize DB connection, chunker, remote client, etc every time it runs.
  • Runs one-off upload of updates to remote server. Note, it’s not very efficient as requires to re-initialize DB connection, chunker, remote client, etc every time it runs.
  • Connects to the server and waits either when wait_time expires or when there’s a remote update for this client. Note, it doesn’t do the update itself, you need to use run_download_once after this function completes.