[−][src]Struct rsync_list::Config
Configuration for a list.
Many options refernce the rsync command line options and syntax. See https://download.samba.org/pub/rsync/rsync.html for the reference documentation on those options.
Fields (Non-exhaustive)
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: &'a OsStrThe source to list.
Example: rsync://example.com/path Example: me@example.com:/path
These are the same syntax as the rsync command line.
exclude: &'a [&'a OsStr]Patterns to exclude from the listing.
Example: www/*.gz
This corresponds to rsync's --exclude flag.
include: &'a [&'a OsStr]Patterns not to exclude..
Example: www/*.tar.gz
This corresponds to rsync's --include flag.
executable: &'a OsStrThe rsync executable to use.
This will be looked for in $PATH if it does not contain any directory
separators.
Default: rsync
links: boolIf links should be reported. If false links will be reported as the
file that they point to.
Note: The last modified time will always be that of the link, not that of the target.
Default: true
recursive: boolRecursively list the source.
Default: true
Methods
impl<'a> Config<'a>[src]
pub fn new(source: &'a OsStr) -> Self[src]
pub fn list(&self) -> impl Stream<Item = Result<Entry, Error>>[src]
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> Send for Config<'a>
impl<'a> Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> UnwindSafe for Config<'a>
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, 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>,