pub struct SleepStats {
pub awake_bodies: usize,
pub sleeping_bodies: usize,
pub wake_requests: usize,
}Expand description
Current dynamic-body counts, each bounded by the world’s 4096-body limit.
This is an allocation-free snapshot, not a cumulative event history or the
last-step island report. See the dimensional world’s sleep_stats method
for an example.
Fields§
§awake_bodies: usize§sleeping_bodies: usize§wake_requests: usizeDynamic bodies with explicit wake requests awaiting a valid outer step.
These bodies are also counted in awake_bodies.
Trait Implementations§
Source§impl Clone for SleepStats
impl Clone for SleepStats
Source§fn clone(&self) -> SleepStats
fn clone(&self) -> SleepStats
Returns a duplicate 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 SleepStats
impl Debug for SleepStats
Source§impl Default for SleepStats
impl Default for SleepStats
Source§fn default() -> SleepStats
fn default() -> SleepStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for SleepStats
impl PartialEq for SleepStats
impl Copy for SleepStats
impl Eq for SleepStats
impl StructuralPartialEq for SleepStats
Auto Trait Implementations§
impl Freeze for SleepStats
impl RefUnwindSafe for SleepStats
impl Send for SleepStats
impl Sync for SleepStats
impl Unpin for SleepStats
impl UnwindSafe for SleepStats
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