[][src]Struct rsyn::Options

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,
}

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.