Function rs_blocks::utils::monitor_command[][src]

pub fn monitor_command(
    cmd: &'static str,
    args: &'static [&'static str],
    period: f32
) -> Monitor<impl FnMut() -> String>
Notable traits for Monitor<T>
impl<T> Iterator for Monitor<T> where
    T: FnMut() -> String
type Item = String;
Expand description

Monitor a given command. When iterated it is periodically executed and its stdout is returned.