#[non_exhaustive]pub struct CollectorStatus {
pub phase: CollectorPhase,
pub owed_fuel: u64,
pub remaining_fuel_at_least: u64,
pub more_may_be_found: bool,
}Expand description
What Lua::collector_status reports.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.phase: CollectorPhaseWhere the cycle under way is.
owed_fuel: u64Fuel for work already done and not yet charged: the collector’s next steps or collection charge it first. Exact (work under one unit of fuel is not counted).
remaining_fuel_at_least: u64At least this much more fuel finishes the cycle under way (0 when Idle). A floor:
the sweep’s unit per object for the slabs it has not reached, nothing for marking.
more_may_be_found: boolWhether the cycle can need more than remaining_fuel_at_least (every phase but
Idle): marking finds the objects it must mark as it goes, the atomic phase what
the writes since gave it, and the sweep walks the interner for each dead interned
string.
Trait Implementations§
Source§impl Clone for CollectorStatus
impl Clone for CollectorStatus
impl Copy for CollectorStatus
Source§impl Debug for CollectorStatus
impl Debug for CollectorStatus
impl Eq for CollectorStatus
Source§impl PartialEq for CollectorStatus
impl PartialEq for CollectorStatus
impl StructuralPartialEq for CollectorStatus
Auto Trait Implementations§
impl Forget for CollectorStatus
impl Freeze for CollectorStatus
impl Move for CollectorStatus
impl RefUnwindSafe for CollectorStatus
impl Send for CollectorStatus
impl Sync for CollectorStatus
impl Unpin for CollectorStatus
impl UnsafeUnpin for CollectorStatus
impl UnwindSafe for CollectorStatus
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