Skip to main content

ManagedRootSource

Trait ManagedRootSource 

Source
pub trait ManagedRootSource {
    // Required method
    fn visit_managed_roots(
        &self,
        visit: &mut dyn FnMut(ManagedId) -> bool,
    ) -> bool;
}
Expand description

Projects live machine storage into the shared managed-object identity space.

Implementations enumerate identities only. Reclamation policy remains outside the machine, so the same suspended state can be inspected by any tracing or retention implementation built over sim-lib-mutation.

Required Methods§

Source

fn visit_managed_roots(&self, visit: &mut dyn FnMut(ManagedId) -> bool) -> bool

Visits roots in a stable, source-defined order.

Returns false immediately when the visitor refuses further work.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ManagedRootSource for ()

Source§

fn visit_managed_roots(&self, _visit: &mut dyn FnMut(ManagedId) -> bool) -> bool

Source§

impl ManagedRootSource for ManagedId

Source§

fn visit_managed_roots(&self, visit: &mut dyn FnMut(ManagedId) -> bool) -> bool

Source§

impl<T: ManagedRootSource> ManagedRootSource for Option<T>

Source§

fn visit_managed_roots(&self, visit: &mut dyn FnMut(ManagedId) -> bool) -> bool

Source§

impl<T: ManagedRootSource> ManagedRootSource for Vec<T>

Source§

fn visit_managed_roots(&self, visit: &mut dyn FnMut(ManagedId) -> bool) -> bool

Implementors§