pub struct RsyncOptions {
pub checksum: bool,
pub compress: bool,
pub delete: bool,
pub inplace: bool,
pub partial: bool,
pub bwlimit: Option<u32>,
}Expand description
Rsync-specific options for fine-tuning transfer behavior.
Fields§
§checksum: boolVerify file integrity using checksums after transfer (deterministic, safe).
compress: boolCompress data during transfer (optional optimization).
delete: boolDelete files on destination not present on source (potentially dangerous).
inplace: boolUpdate destination files in-place (safe and efficient).
partial: boolKeep partially transferred files for resume (safe, enables resume).
bwlimit: Option<u32>Bandwidth limit in KB/s (optional, None means unlimited).
Trait Implementations§
Source§impl Clone for RsyncOptions
impl Clone for RsyncOptions
Source§fn clone(&self) -> RsyncOptions
fn clone(&self) -> RsyncOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RsyncOptions
impl Debug for RsyncOptions
Source§impl Default for RsyncOptions
impl Default for RsyncOptions
Source§impl<'de> Deserialize<'de> for RsyncOptions
impl<'de> Deserialize<'de> for RsyncOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RsyncOptions
impl RefUnwindSafe for RsyncOptions
impl Send for RsyncOptions
impl Sync for RsyncOptions
impl Unpin for RsyncOptions
impl UnsafeUnpin for RsyncOptions
impl UnwindSafe for RsyncOptions
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