pub trait ProcessExt {
// Required methods
fn io_counters(&self) -> BoxFuture<'_, ProcessResult<IoCounters>>;
fn net_io_counters(&self) -> BoxStream<'_, ProcessResult<IoCounters>>;
}
Expand description
Linux-specific extension to Process
Required Methods§
Sourcefn io_counters(&self) -> BoxFuture<'_, ProcessResult<IoCounters>>
fn io_counters(&self) -> BoxFuture<'_, ProcessResult<IoCounters>>
Returns future which resolves into process IO counters.
Since -> impl Trait
is not allowed yet in the trait methods,
this method returns boxed Future
. This behavior will change later.
Sourcefn net_io_counters(&self) -> BoxStream<'_, ProcessResult<IoCounters>>
fn net_io_counters(&self) -> BoxStream<'_, ProcessResult<IoCounters>>
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.