pub struct MockRsync { /* private fields */ }Expand description
Mock rsync operations.
Implementations§
Source§impl MockRsync
impl MockRsync
Sourcepub fn new(config: MockRsyncConfig) -> Self
pub fn new(config: MockRsyncConfig) -> Self
Create new mock rsync.
Sourcepub fn new_default() -> Self
pub fn new_default() -> Self
Create with default config.
Sourcepub fn invocations(&self) -> Vec<MockSyncInvocation>
pub fn invocations(&self) -> Vec<MockSyncInvocation>
Get recorded invocations.
Sourcepub async fn sync_to_remote(
&self,
source: &str,
destination: &str,
_exclude_patterns: &[String],
) -> Result<MockRsyncResult>
pub async fn sync_to_remote( &self, source: &str, destination: &str, _exclude_patterns: &[String], ) -> Result<MockRsyncResult>
Simulate syncing to remote.
Sourcepub async fn retrieve_artifacts(
&self,
source: &str,
destination: &str,
_artifact_patterns: &[String],
) -> Result<MockRsyncResult>
pub async fn retrieve_artifacts( &self, source: &str, destination: &str, _artifact_patterns: &[String], ) -> Result<MockRsyncResult>
Simulate retrieving artifacts.
Auto Trait Implementations§
impl !Freeze for MockRsync
impl RefUnwindSafe for MockRsync
impl Send for MockRsync
impl Sync for MockRsync
impl Unpin for MockRsync
impl UnsafeUnpin for MockRsync
impl UnwindSafe for MockRsync
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