Skip to main content

Env

Trait Env 

Source
pub trait Env {
    // Required methods
    fn cli_pids(&self) -> Vec<(String, u32)>;
    fn procs(&self) -> &dyn ProcView;
    fn agent_name(&self, block_id: &str) -> Option<String>;
    fn record(&self, event: Event);
}
Expand description

What the reader needs from the running system.

Required Methods§

Source

fn cli_pids(&self) -> Vec<(String, u32)>

(block, CLI process) for every agent pane.

Source

fn procs(&self) -> &dyn ProcView

Source

fn agent_name(&self, block_id: &str) -> Option<String>

The agent running in block_id.

Source

fn record(&self, event: Event)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§