Skip to main content

FilesystemQueryInspector

Trait FilesystemQueryInspector 

Source
pub trait FilesystemQueryInspector: Send + Sync {
    // Required methods
    fn read_path<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        host: &'life1 HostRecord,
        path: &'life2 Path,
        request: &'life3 PathReadRequest,
        cancellation: &'life4 CancellationToken,
    ) -> Pin<Box<dyn Future<Output = InfraResult<PathRead>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn find<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        host: &'life1 HostRecord,
        path: &'life2 Path,
        request: &'life3 FileFindRequest,
        cancellation: &'life4 CancellationToken,
    ) -> Pin<Box<dyn Future<Output = InfraResult<FileSearch>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn tail<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        host: &'life1 HostRecord,
        path: &'life2 Path,
        request: &'life3 FileTailRequest,
        cancellation: &'life4 CancellationToken,
    ) -> Pin<Box<dyn Future<Output = InfraResult<FileTail>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
}
Expand description

Descriptor-confined filesystem queries usable locally or over SSH.

Required Methods§

Source

fn read_path<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, host: &'life1 HostRecord, path: &'life2 Path, request: &'life3 PathReadRequest, cancellation: &'life4 CancellationToken, ) -> Pin<Box<dyn Future<Output = InfraResult<PathRead>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Reads a file, directory, or bounded tree.

Source

fn find<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, host: &'life1 HostRecord, path: &'life2 Path, request: &'life3 FileFindRequest, cancellation: &'life4 CancellationToken, ) -> Pin<Box<dyn Future<Output = InfraResult<FileSearch>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Finds files recursively beneath one admitted root.

Source

fn tail<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, host: &'life1 HostRecord, path: &'life2 Path, request: &'life3 FileTailRequest, cancellation: &'life4 CancellationToken, ) -> Pin<Box<dyn Future<Output = InfraResult<FileTail>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Returns the last lines of one admitted regular file.

Implementors§