pub struct CellLoadSample {
pub cell: CellCoord3,
pub owned_entities: usize,
pub ghost_entities: usize,
pub subscribers: usize,
pub estimated_updates: usize,
pub estimated_bytes: usize,
pub tick_cost_units: u64,
pub event_pressure: usize,
}Expand description
Load sample for one spatial cell.
Fields§
§cell: CellCoord3Cell coordinate.
owned_entities: usizeOwned entity count observed in this cell.
ghost_entities: usizeGhost entity count observed in this cell.
subscribers: usizeEstimated subscribers interested in this cell.
estimated_updates: usizeEstimated updates generated by this cell for the current window.
estimated_bytes: usizeEstimated payload bytes generated by this cell for the current window.
tick_cost_units: u64Runtime-defined tick cost units for this cell.
event_pressure: usizeRuntime-defined event pressure units for this cell.
Implementations§
Source§impl CellLoadSample
impl CellLoadSample
Sourcepub fn pressure_score(self) -> u64
pub fn pressure_score(self) -> u64
Returns a deterministic weighted pressure score for ordering cells.
Trait Implementations§
Source§impl Clone for CellLoadSample
impl Clone for CellLoadSample
Source§fn clone(&self) -> CellLoadSample
fn clone(&self) -> CellLoadSample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CellLoadSample
Source§impl Debug for CellLoadSample
impl Debug for CellLoadSample
Source§impl Default for CellLoadSample
impl Default for CellLoadSample
Source§fn default() -> CellLoadSample
fn default() -> CellLoadSample
Returns the “default value” for a type. Read more
impl Eq for CellLoadSample
Source§impl PartialEq for CellLoadSample
impl PartialEq for CellLoadSample
impl StructuralPartialEq for CellLoadSample
Auto Trait Implementations§
impl Freeze for CellLoadSample
impl RefUnwindSafe for CellLoadSample
impl Send for CellLoadSample
impl Sync for CellLoadSample
impl Unpin for CellLoadSample
impl UnsafeUnpin for CellLoadSample
impl UnwindSafe for CellLoadSample
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