rsynko-process
rsynko-process runs the transfers rsynko-rsync states, as an operating-system process.
It decides nothing. The command, including every argument, is stated by rsynko-rsync; this crate spawns it, hands each line it writes back in order, and reports how it ended. What those lines mean is read by the specification, not here — this crate supplies SyncRunAlg and SyncWatchAlg and takes every other meaning from the in-memory interpretation of the transfer sorts.
use ProcessSyncEnv;
use ;
use channel;
let = channel;
let environment = new;
let command = environment.transfer_command;
let changes = environment.run_sync?;
println!;
while let Ok = watched.try_recv
# Ok::
A transfer writes its progress separated by carriage returns rather than newlines, so a line here ends at either one. The process is asked for its output only; whatever it wrote to its error stream is kept and stated as the reason a transfer failed.