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

pub trait ProcessExt {
    fn io_counters(&self) -> BoxFuture<ProcessResult<IoCounters>>;
fn net_io_counters(&self) -> BoxStream<ProcessResult<IoCounters>>; }

Linux-specific extension to Process

Required methods

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.

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.

Loading content...

Implementors

Loading content...