pub trait ObjectTable<K: Kernel>: Send + Sync {
// Required methods
fn get_object(
&self,
kernel: K,
handle: u32,
) -> Option<ForeignRc<K::AtomicUsize, dyn KernelObject<K>>>;
fn dump(&self, kernel: K);
fn reset_all(&self, kernel: K) -> Result<()>;
}Expand description
Translates handles to dynamic references to kernel objects.
ObjectTable is a trait to allow for both static and dynamic tables to be
used in the same time.
Required Methods§
fn get_object( &self, kernel: K, handle: u32, ) -> Option<ForeignRc<K::AtomicUsize, dyn KernelObject<K>>>
fn reset_all(&self, kernel: K) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".