Skip to main content

TreeStore

Trait TreeStore 

Source
pub trait TreeStore {
    // Required methods
    fn get_node(&self, pid: u32) -> Option<PidNode>;
    fn insert_node(&self, pid: u32, node: PidNode);
    fn all_pids(&self) -> Vec<u32>;
}
Expand description

Trait for process tree storage.

Implement this trait to provide your own storage backend.

Required Methods§

Source

fn get_node(&self, pid: u32) -> Option<PidNode>

Get a tree node by PID.

Source

fn insert_node(&self, pid: u32, node: PidNode)

Insert or update a tree node.

Source

fn all_pids(&self) -> Vec<u32>

Get all PIDs in the tree.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§