pub trait ResourcesVisitor {
// Required methods
fn on_job(
&mut self,
job_koid: zx_koid_t,
job_name: &ZXName,
job: Job,
) -> Result<(), Status>;
fn on_process(
&mut self,
process_koid: zx_koid_t,
process_name: &ZXName,
process: Process,
) -> Result<(), Status>;
fn on_vmo(
&mut self,
vmo_koid: zx_koid_t,
vmo_name: &ZXName,
vmo: Vmo,
) -> Result<(), Status>;
}
Expand description
The post-order traversal of the Jobs->Process->VMOs tree guarantees that when a visitor processes a Process, it has already seen its associated VMOs.