pub struct CommandHostSystemInspector<E> { /* private fields */ }Expand description
Host-system inspector backed by a fleet command executor.
Implementations§
Trait Implementations§
Source§impl<E> HostSystemInspector for CommandHostSystemInspector<E>where
E: CommandExecutor,
impl<E> HostSystemInspector for CommandHostSystemInspector<E>where
E: CommandExecutor,
Source§fn services<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
request: &'life2 ServiceListRequest,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Vec<ServiceStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn services<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
request: &'life2 ServiceListRequest,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Vec<ServiceStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Lists services.
Source§fn network<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
deadline: Timestamp,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Vec<NetworkInterface>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn network<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
deadline: Timestamp,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Vec<NetworkInterface>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Reads network interfaces.
Source§fn mounts<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
deadline: Timestamp,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Vec<MountInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn mounts<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
deadline: Timestamp,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Vec<MountInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Lists mounted filesystems.
Source§fn ports<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
request: &'life2 PortListRequest,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Vec<PortInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn ports<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
request: &'life2 PortListRequest,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Vec<PortInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Lists listening ports.
Source§fn filesystem_usage<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: Option<&'life2 str>,
deadline: Timestamp,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<FilesystemUsage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn filesystem_usage<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
path: Option<&'life2 str>,
deadline: Timestamp,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<FilesystemUsage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Reads byte-precise filesystem usage.
Source§fn doctor<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
deadline: Timestamp,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<DoctorReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn doctor<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
deadline: Timestamp,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<DoctorReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Runs deterministic read-only health checks.
Auto Trait Implementations§
impl<E> Freeze for CommandHostSystemInspector<E>
impl<E> RefUnwindSafe for CommandHostSystemInspector<E>where
E: RefUnwindSafe,
impl<E> Send for CommandHostSystemInspector<E>
impl<E> Sync for CommandHostSystemInspector<E>
impl<E> Unpin for CommandHostSystemInspector<E>
impl<E> UnsafeUnpin for CommandHostSystemInspector<E>
impl<E> UnwindSafe for CommandHostSystemInspector<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