Skip to main content

FileTransferInspector

Trait FileTransferInspector 

Source
pub trait FileTransferInspector: Send + Sync {
    // Required method
    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;
}
Expand description

Reads file identities for transfer planning and verification.

Required Methods§

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,

Reads one file identity, optionally returning absence.

Implementors§