[−][src]Trait heim::process::os::linux::ProcessExt
Linux-specific extension to Process
Required methods
fn io_counters(
&self
) -> Pin<Box<dyn Future<Output = Result<IoCounters, ProcessError>> + Send>>
&self
) -> Pin<Box<dyn Future<Output = Result<IoCounters, ProcessError>> + Send>>
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
) -> Pin<Box<dyn Stream<Item = Result<IoCounters, ProcessError>> + Send>>
&self
) -> Pin<Box<dyn Stream<Item = Result<IoCounters, ProcessError>> + Send>>
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.
Implementors
impl ProcessExt for Process
[src]
pub fn io_counters(
&self
) -> Pin<Box<dyn Future<Output = Result<IoCounters, ProcessError>> + Send>>
[src]
&self
) -> Pin<Box<dyn Future<Output = Result<IoCounters, ProcessError>> + Send>>
pub fn net_io_counters(
&self
) -> Pin<Box<dyn Stream<Item = Result<IoCounters, ProcessError>> + Send>>
[src]
&self
) -> Pin<Box<dyn Stream<Item = Result<IoCounters, ProcessError>> + Send>>