Expand description
Operation context (observer hooks, cancel flag), counts, byte totals and timing helpers.
Structs§
- Byte
Totals - Byte totals for an
addorgetresult:to_transfer + already_stored == total;transferredis what actually moved. Rows of unknown size count in none. - Cancel
Token - A shared “stop starting new files” flag. Cloning shares the flag, so a signal handler can hold one clone while the operation checks another.
- Counts
- Row counts for a result:
succeeded + failed + cancelled == total. - Operation
Context - Passed to every operation: who, if anyone, observes it, and its cancel flag.
- Operation
Plan - What an operation is about to do, known once selection and storage checks
are done.
statusreports zero*_to_transfer. - Transfer
Observer - Adapts an
on_file_startcallback (the pre-observer progress API) into an observer that only watches transfers.
Enums§
- FileRow
- A file’s final row, in the same shape the command’s result will hold.
- RowState
- How one file of an add or status run ended.
- RunOutcome
- How an add or status run ended.
Traits§
- Operation
Observer - Hooks an operation calls as it runs. Called from worker threads, possibly concurrently; implementations serialize their own output.
- Operation
Row - A result row that can be counted into
Counts.
Functions§
- duration_
ms - millis
- rfc3339_
ms - RFC 3339 UTC with milliseconds, e.g.
2025-10-21T14:30:00.123Z. - unix_ms
- Unix milliseconds, for event
ts.