pub mod executor;
pub mod manifest;
pub mod verify;
pub use executor::{execute, repair_dest_mtimes, Options, Stats, SyncMode};
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "event", rename_all = "snake_case")]
pub enum Event {
XferStart { path: String, bytes: u64 },
XferDone { path: String, bytes: u64 },
XferFail { path: String, err: String },
VerifyOk { path: String },
VerifyFail { path: String, err: String },
Finish { ok: bool },
}
#[derive(Debug, Clone)]
pub enum ProgressEvent {
FileStart { path: String, bytes: u64 },
FileProgress { bytes: u64 },
FileDone { path: String, bytes: u64 },
FileFail { path: String, err: String },
DeleteDone { path: String },
Finish { stats: Stats },
}