Skip to main content

HostInspector

Trait HostInspector 

Source
pub trait HostInspector: Send + Sync {
    // Required method
    fn inspect<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        host: &'life1 HostRecord,
        request: HostInspectRequest,
        cancellation: &'life2 CancellationToken,
    ) -> Pin<Box<dyn Future<Output = InfraResult<HostInspection>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Product-neutral host inspection engine.

Required Methods§

Source

fn inspect<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, host: &'life1 HostRecord, request: HostInspectRequest, cancellation: &'life2 CancellationToken, ) -> Pin<Box<dyn Future<Output = InfraResult<HostInspection>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Collects one typed snapshot from the exact host revision.

Implementors§

Source§

impl<E> HostInspector for LinuxCommandHostInspector<E>
where E: CommandExecutor,