pub struct FileTransferEngine;Expand description
Verified bounded file-transfer coordinator.
Implementations§
Source§impl FileTransferEngine
impl FileTransferEngine
Sourcepub async fn inspect(
&self,
client: &dyn VerifiedFileTransferClient,
source: &HostRecord,
source_path: &Path,
destination: &HostRecord,
destination_path: &Path,
cancellation: &CancellationToken,
) -> InfraResult<FileTransferFingerprint>
pub async fn inspect( &self, client: &dyn VerifiedFileTransferClient, source: &HostRecord, source_path: &Path, destination: &HostRecord, destination_path: &Path, cancellation: &CancellationToken, ) -> InfraResult<FileTransferFingerprint>
Captures source and destination pre-state.
Sourcepub async fn execute(
&self,
client: &dyn VerifiedFileTransferClient,
source: &HostRecord,
destination: &HostRecord,
request: &VerifiedFileTransferRequest,
cancellation: &CancellationToken,
) -> MutationResult<VerifiedFileTransferOutcome>
pub async fn execute( &self, client: &dyn VerifiedFileTransferClient, source: &HostRecord, destination: &HostRecord, request: &VerifiedFileTransferRequest, cancellation: &CancellationToken, ) -> MutationResult<VerifiedFileTransferOutcome>
Executes a transfer and independently verifies destination content.
Trait Implementations§
Source§impl Clone for FileTransferEngine
impl Clone for FileTransferEngine
Source§fn clone(&self) -> FileTransferEngine
fn clone(&self) -> FileTransferEngine
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 FileTransferEngine
impl Debug for FileTransferEngine
Source§impl Default for FileTransferEngine
impl Default for FileTransferEngine
Source§fn default() -> FileTransferEngine
fn default() -> FileTransferEngine
Returns the “default value” for a type. Read more
impl Copy for FileTransferEngine
Auto Trait Implementations§
impl Freeze for FileTransferEngine
impl RefUnwindSafe for FileTransferEngine
impl Send for FileTransferEngine
impl Sync for FileTransferEngine
impl Unpin for FileTransferEngine
impl UnsafeUnpin for FileTransferEngine
impl UnwindSafe for FileTransferEngine
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