Skip to main content

LogReader

Trait LogReader 

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

Product-neutral operating-system log reader.

Required Methods§

Source

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

Reads one bounded log source.

Implementors§

Source§

impl<E> LogReader for CommandLogReader<E>
where E: CommandExecutor,