pub struct CommandFilesystemQueryInspector<E> { /* private fields */ }Expand description
Descriptor-walking filesystem query driver backed by fleet command execution.
Implementations§
Source§impl<E> CommandFilesystemQueryInspector<E>
impl<E> CommandFilesystemQueryInspector<E>
Sourcepub fn new(executor: Arc<E>, policy: FileReadPolicy) -> Self
pub fn new(executor: Arc<E>, policy: FileReadPolicy) -> Self
Creates a query inspector from an executor and explicit read policy.
Sourcepub fn policy(&self) -> &FileReadPolicy
pub fn policy(&self) -> &FileReadPolicy
Returns the active read policy.
Trait Implementations§
Source§impl<E> FilesystemQueryInspector for CommandFilesystemQueryInspector<E>where
E: CommandExecutor,
impl<E> FilesystemQueryInspector for CommandFilesystemQueryInspector<E>where
E: CommandExecutor,
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,
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,
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,
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.
Auto Trait Implementations§
impl<E> Freeze for CommandFilesystemQueryInspector<E>
impl<E> RefUnwindSafe for CommandFilesystemQueryInspector<E>where
E: RefUnwindSafe,
impl<E> Send for CommandFilesystemQueryInspector<E>
impl<E> Sync for CommandFilesystemQueryInspector<E>
impl<E> Unpin for CommandFilesystemQueryInspector<E>
impl<E> UnsafeUnpin for CommandFilesystemQueryInspector<E>
impl<E> UnwindSafe for CommandFilesystemQueryInspector<E>where
E: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more