pub struct CommandFileTransfer { /* private fields */ }Expand description
Descriptor-confined local or strict-SSH file transfer driver.
Implementations§
Source§impl CommandFileTransfer
impl CommandFileTransfer
Sourcepub fn new(executor: Arc<dyn CommandExecutor>) -> Self
pub fn new(executor: Arc<dyn CommandExecutor>) -> Self
Creates a transfer driver with no admitted hosts.
Sourcepub fn with_policy(self, host: HostId, policy: FileTransferPolicy) -> Self
pub fn with_policy(self, host: HostId, policy: FileTransferPolicy) -> Self
Adds or replaces one host policy.
Trait Implementations§
Source§impl FileTransfer for CommandFileTransfer
impl FileTransfer for CommandFileTransfer
Source§fn transfer<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
source: &'life1 HostRecord,
destination: &'life2 HostRecord,
request: &'life3 TransferRequest,
cancellation: &'life4 CancellationToken,
) -> Pin<Box<dyn Future<Output = FleetResult<TransferReceipt>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn transfer<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
source: &'life1 HostRecord,
destination: &'life2 HostRecord,
request: &'life3 TransferRequest,
cancellation: &'life4 CancellationToken,
) -> Pin<Box<dyn Future<Output = FleetResult<TransferReceipt>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Transfers one validated path pair between exact host revisions.
Source§impl FileTransferInspector for CommandFileTransfer
impl FileTransferInspector for CommandFileTransfer
Source§fn inspect_transfer_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: &'life2 Path,
role: FileTransferPathRole,
optional: bool,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Option<TransferFileIdentity>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn inspect_transfer_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: &'life2 Path,
role: FileTransferPathRole,
optional: bool,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Option<TransferFileIdentity>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Reads one file identity, optionally returning absence.
Auto Trait Implementations§
impl Freeze for CommandFileTransfer
impl !RefUnwindSafe for CommandFileTransfer
impl Send for CommandFileTransfer
impl Sync for CommandFileTransfer
impl Unpin for CommandFileTransfer
impl UnsafeUnpin for CommandFileTransfer
impl !UnwindSafe for CommandFileTransfer
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