syncor_core/daemon/worker.rs
1// LinkLock is already implemented in crate::sync::engine.
2// Re-export it so callers can import from the daemon module if desired.
3pub use crate::sync::engine::LinkLock;
4
5// ---------------------------------------------------------------------------
6// SyncJob — describes a unit of work the daemon should execute
7// ---------------------------------------------------------------------------
8
9/// A job dispatched to a daemon worker.
10#[derive(Debug, Clone)]
11pub enum SyncJob {
12 /// Push local changes for the given link to the remote.
13 Push { link_id: String },
14 /// Pull remote changes for the given link to the local directory.
15 Pull { link_id: String },
16}