pub enum GcTrigger {
Threshold,
EvalReturn,
InterpreterDrop,
NotebookCell,
NotebookReset,
AgentTurn,
SchedulerIdle,
Explicit,
}Expand description
Which safe point requested a collection pass. Purely observational —
recorded on the GcPassEvent so telemetry can attribute collector work
to the code path that triggered it; the pass itself runs identically for
every trigger.
Variants§
Threshold
Registry growth crossed the collection threshold at a candidate birth
(make_closure or a data-cycle constructor).
EvalReturn
Top-level eval return (REPL line, script form, embedded eval).
InterpreterDrop
Interpreter teardown (Interpreter::drop).
NotebookCell
Notebook cell eval return.
NotebookReset
Notebook kernel reset mop-up.
AgentTurn
Agent tool-loop turn boundary.
SchedulerIdle
Cooperative scheduler went idle (all tasks done and reaped).
Explicit
Explicit request: (gc/collect), REPL ,gc, or a host call.
Implementations§
Trait Implementations§
impl Copy for GcTrigger
impl Eq for GcTrigger
impl StructuralPartialEq for GcTrigger
Auto Trait Implementations§
impl Freeze for GcTrigger
impl RefUnwindSafe for GcTrigger
impl Send for GcTrigger
impl Sync for GcTrigger
impl Unpin for GcTrigger
impl UnsafeUnpin for GcTrigger
impl UnwindSafe for GcTrigger
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.