Skip to main content

Module local_pusher

Module local_pusher 

Source
Expand description

Local-clip ingest path.

Captures clips detected on the local clipboard, encrypts them, pushes to the relay, then write-throughs to the shared store using the relay-assigned clip ID. Mirrors the cinch push flow so the desktop and CLI converge on a single push pipeline.

When no encryption key is available, or when the relay push returns a transient error, the clip is queued locally via backlog_flusher::enqueue_local and returned as PushOutcome::Queued. The flush_once task retries those rows on the next (re)connect.

Structs§

LocalPusher
Encrypt + push + local write-through for clips originating on this device.

Enums§

IngestError
PushOutcome
Result of LocalPusher::push_text / push_image_png. The string in both variants is the clip id known to the local store. Callers that need to surface offline state to the user can match on Queued.