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§
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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,
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.