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§
Sourcefn insert_node(&self, pid: u32, node: PidNode)
fn insert_node(&self, pid: u32, node: PidNode)
Insert or update a tree node.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".