#[non_exhaustive]pub enum CollectorPhase {
Idle,
Marking,
AtomicSuspended,
Sweeping,
}Expand description
The collector’s phase (Lua::collector_status).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Idle
Between cycles: none under way.
Marking
Marking what is reachable, a step at a time.
AtomicSuspended
The end of marking (the atomic phase), suspended at a call’s fuel: the next call from the host finishes it before any script code runs, charged to that call.
Sweeping
Freeing what marking did not reach, a step at a time.
Trait Implementations§
Source§impl Clone for CollectorPhase
impl Clone for CollectorPhase
impl Copy for CollectorPhase
Source§impl Debug for CollectorPhase
impl Debug for CollectorPhase
impl Eq for CollectorPhase
Source§impl PartialEq for CollectorPhase
impl PartialEq for CollectorPhase
impl StructuralPartialEq for CollectorPhase
Auto Trait Implementations§
impl Forget for CollectorPhase
impl Freeze for CollectorPhase
impl Move for CollectorPhase
impl RefUnwindSafe for CollectorPhase
impl Send for CollectorPhase
impl Sync for CollectorPhase
impl Unpin for CollectorPhase
impl UnsafeUnpin for CollectorPhase
impl UnwindSafe for CollectorPhase
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