pub trait Collector: Send + Sync {
// Required methods
fn register<T>(&self, data: Arc<T>)
where T: ?Sized + Send + Sync + 'static,
Arc<T>: StrongCount;
fn remove<T>(&self, data: &Arc<T>)
where T: ?Sized + Send + Sync + 'static,
Arc<T>: StrongCount;
}Expand description
A trait which describes a garbage collector which collects resources dropped on a realtime thread and safely deallocates them on another thread.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.