[−][src]Crate rsyn
A wire-compatible rsync client in Rust.
Messages are sent to log
and a log destination
may optionally be configured by clients.
Use the Client
type to list or transfer files:
// Open a connection to a local rsync server, and list the source directory. use rsyn::{Client, Options}; let mut client = Client::local("./src"); client.set_recursive(true); let (flist, _stats) = client.list_files()?; // We can see the `lib.rs` in the listing. assert!(flist.iter().any(|fe| fe.name_lossy_string().ends_with("lib.rs")));
Structs
Client | A client for an rsync server. |
FileEntry | Description of a single file (or directory or symlink etc). |
Options | Command-line options controlling the local and remote processes. |
ServerStatistics | Statistics from a remote server about how much work it did. |
Type Definitions
FileList | A list of files returned from a server. |
Result | General Result type from rsyn APIs. |