pub struct CollectionBarrier { /* private fields */ }Expand description
This structure stops and resumes all background threads waiting for GC.
Implementations§
Source§impl CollectionBarrier
impl CollectionBarrier
pub fn new(_heap: *mut Heap) -> CollectionBarrier
pub fn was_gc_requested(&self) -> bool
pub fn request_gc(&self)
pub fn notify_shutdown_requested(&self)
pub fn resume_threads_awaiting_collection(&self)
Auto Trait Implementations§
impl !Freeze for CollectionBarrier
impl !RefUnwindSafe for CollectionBarrier
impl !Sync for CollectionBarrier
impl Send for CollectionBarrier
impl Unpin for CollectionBarrier
impl UnsafeUnpin for CollectionBarrier
impl UnwindSafe for CollectionBarrier
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