[−][src]Struct rsyn::Options
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 Clone for Options
[src]
impl Debug for Options
[src]
impl Default for Options
[src]
impl Eq for Options
[src]
impl PartialEq<Options> for Options
[src]
impl StructuralEq for Options
[src]
impl StructuralPartialEq for Options
[src]
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,