[][src]Trait heim_process::os::linux::ProcessExt

pub trait ProcessExt {
#[must_use]    pub fn net_io_counters<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ProcessResult<BoxStream<'_, ProcessResult<IoCounters>>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
This is supported on Linux only.

Linux-specific extension to Process

Required methods

#[must_use]pub fn net_io_counters<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = ProcessResult<BoxStream<'_, ProcessResult<IoCounters>>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns stream which yield this process IO counters for each network interface.

Since -> impl Trait is not allowed yet in the trait methods, this method returns boxed Stream. This behavior will change later.

Loading content...

Implementors

impl ProcessExt for Process[src]

Loading content...