pub struct LinuxFilesystemInspector { /* private fields */ }Expand description
Linux descriptor-confined filesystem reader.
Implementations§
Source§impl LinuxFilesystemInspector
impl LinuxFilesystemInspector
Sourcepub fn new(policy: FileReadPolicy) -> Self
pub fn new(policy: FileReadPolicy) -> Self
Creates an inspector from an explicit read policy.
Sourcepub fn policy(&self) -> &FileReadPolicy
pub fn policy(&self) -> &FileReadPolicy
Returns the active read policy.
Trait Implementations§
Source§impl Clone for LinuxFilesystemInspector
impl Clone for LinuxFilesystemInspector
Source§fn clone(&self) -> LinuxFilesystemInspector
fn clone(&self) -> LinuxFilesystemInspector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinuxFilesystemInspector
impl Debug for LinuxFilesystemInspector
Source§impl FilesystemInspector for LinuxFilesystemInspector
impl FilesystemInspector for LinuxFilesystemInspector
Source§fn stat<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: &'life2 Path,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<FileMetadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn stat<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: &'life2 Path,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<FileMetadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Returns metadata for one admitted path.
Source§fn read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: &'life2 Path,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<FilePreview>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: &'life2 Path,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<FilePreview>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Reads a bounded prefix of one admitted regular file.
Source§fn hash<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: &'life2 Path,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<FileHash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn hash<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: &'life2 Path,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<FileHash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Hashes one admitted regular file within the policy size limit.
Auto Trait Implementations§
impl Freeze for LinuxFilesystemInspector
impl RefUnwindSafe for LinuxFilesystemInspector
impl Send for LinuxFilesystemInspector
impl Sync for LinuxFilesystemInspector
impl Unpin for LinuxFilesystemInspector
impl UnsafeUnpin for LinuxFilesystemInspector
impl UnwindSafe for LinuxFilesystemInspector
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