Enum mozjs::jsapi::JSFinalizeStatus
source · #[repr(u32)]pub enum JSFinalizeStatus {
JSFINALIZE_GROUP_PREPARE = 0,
JSFINALIZE_GROUP_START = 1,
JSFINALIZE_GROUP_END = 2,
JSFINALIZE_COLLECTION_END = 3,
}
Variants§
JSFINALIZE_GROUP_PREPARE = 0
Called when preparing to sweep a group of zones, before anything has been swept. The collector will not yield to the mutator before calling the callback with JSFINALIZE_GROUP_START status.
JSFINALIZE_GROUP_START = 1
Called after preparing to sweep a group of zones. Weak references to unmarked things have been removed at this point, but no GC things have been swept. The collector may yield to the mutator after this point.
JSFINALIZE_GROUP_END = 2
Called after sweeping a group of zones. All dead GC things have been swept at this point.
JSFINALIZE_COLLECTION_END = 3
Called at the end of collection when everything has been swept.
Trait Implementations§
source§impl Clone for JSFinalizeStatus
impl Clone for JSFinalizeStatus
source§fn clone(&self) -> JSFinalizeStatus
fn clone(&self) -> JSFinalizeStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JSFinalizeStatus
impl Debug for JSFinalizeStatus
source§impl Hash for JSFinalizeStatus
impl Hash for JSFinalizeStatus
source§impl PartialEq for JSFinalizeStatus
impl PartialEq for JSFinalizeStatus
source§fn eq(&self, other: &JSFinalizeStatus) -> bool
fn eq(&self, other: &JSFinalizeStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for JSFinalizeStatus
impl Eq for JSFinalizeStatus
impl StructuralPartialEq for JSFinalizeStatus
Auto Trait Implementations§
impl Freeze for JSFinalizeStatus
impl RefUnwindSafe for JSFinalizeStatus
impl Send for JSFinalizeStatus
impl Sync for JSFinalizeStatus
impl Unpin for JSFinalizeStatus
impl UnwindSafe for JSFinalizeStatus
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
source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more