Struct v8::GCCallbackFlags
source · #[repr(C)]pub struct GCCallbackFlags(/* private fields */);
Expand description
GCCallbackFlags is used to notify additional information about the GC callback.
- GCCallbackFlagConstructRetainedObjectInfos: The GC callback is for constructing retained object infos.
- GCCallbackFlagForced: The GC callback is for a forced GC for testing.
- GCCallbackFlagSynchronousPhantomCallbackProcessing: The GC callback is called synchronously without getting posted to an idle task.
- GCCallbackFlagCollectAllAvailableGarbage: The GC callback is called in a phase where V8 is trying to collect all available garbage (e.g., handling a low memory notification).
- GCCallbackScheduleIdleGarbageCollection: The GC callback is called to trigger an idle garbage collection.
Implementations§
source§impl GCCallbackFlags
impl GCCallbackFlags
pub const NONE: Self = _
pub const CONSTRUCT_RETAINED_OBJECT_INFOS: Self = _
pub const FORCED: Self = _
pub const SYNCHRONOUS_PHANTOM_CALLBACK_PROCESSING: Self = _
pub const COLLECT_ALL_AVAILABLE_GARBAGE: Self = _
pub const COLLECT_ALL_EXTERNAL_MEMORY: Self = _
pub const SCHEDULE_IDLE_GARBAGE_COLLECTION: Self = _
Trait Implementations§
source§impl BitOr<GCCallbackFlags> for GCCallbackFlags
impl BitOr<GCCallbackFlags> for GCCallbackFlags
source§impl Clone for GCCallbackFlags
impl Clone for GCCallbackFlags
source§fn clone(&self) -> GCCallbackFlags
fn clone(&self) -> GCCallbackFlags
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 GCCallbackFlags
impl Debug for GCCallbackFlags
source§impl PartialEq<GCCallbackFlags> for GCCallbackFlags
impl PartialEq<GCCallbackFlags> for GCCallbackFlags
source§fn eq(&self, other: &GCCallbackFlags) -> bool
fn eq(&self, other: &GCCallbackFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GCCallbackFlags
impl Eq for GCCallbackFlags
impl StructuralEq for GCCallbackFlags
impl StructuralPartialEq for GCCallbackFlags
Auto Trait Implementations§
impl RefUnwindSafe for GCCallbackFlags
impl Send for GCCallbackFlags
impl Sync for GCCallbackFlags
impl Unpin for GCCallbackFlags
impl UnwindSafe for GCCallbackFlags
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