pub struct SyncConfig {Show 18 fields
pub source: PathBuf,
pub target: PathBuf,
pub dry_run: bool,
pub delete: bool,
pub follow_symlinks: bool,
pub compare_mode: CompareMode,
pub hash_algorithm: HashAlgorithm,
pub verify_mode: VerifyMode,
pub sync_metadata: bool,
pub preserve_times: PreserveMode,
pub preserve_permissions: PreserveMode,
pub atomic_write: bool,
pub threads: usize,
pub queue_size: usize,
pub max_errors: usize,
pub stop_on_error: bool,
pub output: OutputMode,
pub log_level: LogLevel,
}Expand description
完整运行配置。
Fields§
§source: PathBuf§target: PathBuf§dry_run: bool§delete: bool§follow_symlinks: bool§compare_mode: CompareMode§hash_algorithm: HashAlgorithm§verify_mode: VerifyMode§sync_metadata: bool§preserve_times: PreserveMode§preserve_permissions: PreserveMode§atomic_write: bool§threads: usize§queue_size: usize§max_errors: usize§stop_on_error: bool§output: OutputMode§log_level: LogLevelImplementations§
Source§impl SyncConfig
impl SyncConfig
Sourcepub fn syncs_file_metadata(&self) -> bool
pub fn syncs_file_metadata(&self) -> bool
判断是否需要为同名文件生成独立的元数据同步任务。
Trait Implementations§
Source§impl Clone for SyncConfig
impl Clone for SyncConfig
Source§fn clone(&self) -> SyncConfig
fn clone(&self) -> SyncConfig
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 SyncConfig
impl Debug for SyncConfig
Auto Trait Implementations§
impl Freeze for SyncConfig
impl RefUnwindSafe for SyncConfig
impl Send for SyncConfig
impl Sync for SyncConfig
impl Unpin for SyncConfig
impl UnsafeUnpin for SyncConfig
impl UnwindSafe for SyncConfig
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