[−][src]Struct zerogc_context::state::nosync::CollectionManager
Manages coordination of garbage collections
This is factored out of the main code mainly due to differences from single-threaded collection
Trait Implementations
impl<C> CollectionManager<C> for CollectionManager<C> where
C: RawCollectorImpl<Manager = Self, RawContext = RawContext<C>>,
[src]
C: RawCollectorImpl<Manager = Self, RawContext = RawContext<C>>,
type Context = RawContext<C>
pub fn new() -> Self
[src]
pub fn is_collecting(&self) -> bool
[src]
pub fn should_trigger_collection(&self) -> bool
[src]
pub unsafe fn freeze_context(&self, context: &RawContext<C>)
[src]
pub unsafe fn unfreeze_context(&self, _context: &RawContext<C>)
[src]
pub fn prevent_collection<R>(_collector: &C, _func: impl FnOnce() -> R) -> R
[src]
pub unsafe fn free_context(_collector: &C, _context: *mut Self::Context)
[src]
Auto Trait Implementations
impl<C> !RefUnwindSafe for CollectionManager<C>
[src]
impl<C> Send for CollectionManager<C> where
C: SyncCollector,
[src]
C: SyncCollector,
impl<C> !Sync for CollectionManager<C>
[src]
impl<C> Unpin for CollectionManager<C> where
<C as RawCollectorImpl>::Ptr: Unpin,
[src]
<C as RawCollectorImpl>::Ptr: Unpin,
impl<C> UnwindSafe for CollectionManager<C> where
<C as RawCollectorImpl>::Ptr: UnwindSafe,
[src]
<C as RawCollectorImpl>::Ptr: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,