pub struct Options {
pub recursive: bool,
pub rsync_command: Option<Vec<String>>,
pub ssh_command: Option<Vec<String>>,
pub list_only: bool,
pub verbose: u32,
}
Expand description
Command-line options controlling the local and remote processes.
These are held inside a Client
,
and are passed to the remote side when the connection is opened.
use rsyn::{Client, Options};
let mut client = Client::from_str("rsync.example.com::mod").unwrap();
client.set_options(Options {
verbose: 2,
recursive: true,
.. Options::default()
});
Fields§
§recursive: bool
Recurse into directories.
rsync_command: Option<Vec<String>>
Command to run to start the rsync server, typically remotely.
May be multiple words, which will be passed as separate shell arguments.
If unset, just “rsync”.
ssh_command: Option<Vec<String>>
Command to open a connection to the remote server.
May be multiple words to include options, which will be passed as separate shell arguments.
If unset, just “ssh”.
list_only: bool
Only list files, don’t transfer contents.
In some cases the server will infer this.
verbose: u32
Be verbose.
(This is passed to the server to encourage it to be verbose too.)
Trait Implementations§
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more