pub struct MockRsyncConfig {
pub fail_sync: bool,
pub fail_sync_attempts: u32,
pub fail_artifacts: bool,
pub fail_artifacts_attempts: u32,
pub files_per_sync: u32,
pub bytes_per_sync: u64,
}Expand description
Configuration for mock rsync behavior.
Fields§
§fail_sync: boolSimulate sync failure.
fail_sync_attempts: u32Simulate transient sync failures for N attempts (then succeed).
fail_artifacts: boolSimulate artifact retrieval failure.
fail_artifacts_attempts: u32Simulate transient artifact failures for N attempts (then succeed).
files_per_sync: u32Simulated files per sync.
bytes_per_sync: u64Simulated bytes per sync.
Implementations§
Source§impl MockRsyncConfig
impl MockRsyncConfig
Sourcepub fn sync_failure() -> Self
pub fn sync_failure() -> Self
Create config that fails sync.
Sourcepub fn artifact_failure() -> Self
pub fn artifact_failure() -> Self
Create config that fails artifact retrieval.
Trait Implementations§
Source§impl Clone for MockRsyncConfig
impl Clone for MockRsyncConfig
Source§fn clone(&self) -> MockRsyncConfig
fn clone(&self) -> MockRsyncConfig
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 MockRsyncConfig
impl Debug for MockRsyncConfig
Source§impl Default for MockRsyncConfig
impl Default for MockRsyncConfig
Source§fn default() -> MockRsyncConfig
fn default() -> MockRsyncConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MockRsyncConfig
impl RefUnwindSafe for MockRsyncConfig
impl Send for MockRsyncConfig
impl Sync for MockRsyncConfig
impl Unpin for MockRsyncConfig
impl UnsafeUnpin for MockRsyncConfig
impl UnwindSafe for MockRsyncConfig
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