pub(crate) struct ThreadSafeRootSet {
pub(super) roots: Mutex<Vec<*const dyn Trace>>,
}Expand description
Thread-safe version of RootSet that uses Mutex instead of RefCell. This is specifically designed for multi-threaded scenarios like ChannelManager where roots need to be managed across thread boundaries.
Note: Send/Sync safety is guaranteed by HeapRoot, which ensures the raw pointers only point to data it owns in HeapRoot::data.
Fields§
§roots: Mutex<Vec<*const dyn Trace>>Trait Implementations§
Source§impl Debug for ThreadSafeRootSet
impl Debug for ThreadSafeRootSet
Auto Trait Implementations§
impl !Freeze for ThreadSafeRootSet
impl RefUnwindSafe for ThreadSafeRootSet
impl !Send for ThreadSafeRootSet
impl !Sync for ThreadSafeRootSet
impl Unpin for ThreadSafeRootSet
impl UnwindSafe for ThreadSafeRootSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more