[−][src]Enum zerogc_context::ContextState
Variants
The context is active.
Its contents are potentially being mutated,
so the shadow_stack
doesn't necessarily
reflect the actual set of thread roots.
New objects could be allocated that are not
actually being tracked in the shadow_stack
.
The context is waiting at a safepoint for a collection to complete.
The mutating thread is blocked for the duration of the safepoint (until collection completes).
Therefore, its shadow_stack
is guarenteed to reflect
the actual set of thread roots.
Fields of SafePoint
collection_id: u64
The id of the collection we are waiting for
The context is frozen. Allocation or mutation can't happen but the mutator thread isn't actually blocked.
Unlike a safepoint, this is explicitly unfrozen at the user's discretion.
Because no allocation or mutation can happen, its shadow_stack stack is guarenteed to accurately reflect the roots of the context.
Trait Implementations
impl Clone for ContextState
[src]
pub fn clone(&self) -> ContextState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ContextState
[src]
impl Debug for ContextState
[src]
impl Eq for ContextState
[src]
impl PartialEq<ContextState> for ContextState
[src]
pub fn eq(&self, other: &ContextState) -> bool
[src]
pub fn ne(&self, other: &ContextState) -> bool
[src]
impl StructuralEq for ContextState
[src]
impl StructuralPartialEq for ContextState
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContextState
[src]
impl Send for ContextState
[src]
impl Sync for ContextState
[src]
impl Unpin for ContextState
[src]
impl UnwindSafe for ContextState
[src]
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> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,