pub struct StationLoadSample {
pub station_id: StationId,
pub owned_entities: usize,
pub ghost_entities: usize,
pub subscribers: usize,
pub queued_events: usize,
pub estimated_bytes: usize,
pub tick_cost_units: u64,
pub cells: Vec<CellLoadSample>,
}Expand description
Load sample for one station over a measurement window.
Fields§
§station_id: StationIdStation being measured.
owned_entities: usizeNumber of authoritative entities.
ghost_entities: usizeNumber of read-only ghost entities.
subscribers: usizeEstimated subscribers routed to this station.
queued_events: usizeTotal queued cross-station events.
estimated_bytes: usizeEstimated frame bytes generated by this station.
tick_cost_units: u64Runtime-defined station tick cost units.
cells: Vec<CellLoadSample>Per-cell load samples.
Implementations§
Source§impl StationLoadSample
impl StationLoadSample
Sourcepub const fn total_entities(&self) -> usize
pub const fn total_entities(&self) -> usize
Returns total entity count.
Sourcepub fn max_cell_pressure(&self) -> u64
pub fn max_cell_pressure(&self) -> u64
Returns the highest per-cell pressure score.
Trait Implementations§
Source§impl Clone for StationLoadSample
impl Clone for StationLoadSample
Source§fn clone(&self) -> StationLoadSample
fn clone(&self) -> StationLoadSample
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 moreSource§impl Debug for StationLoadSample
impl Debug for StationLoadSample
Source§impl Default for StationLoadSample
impl Default for StationLoadSample
Source§fn default() -> StationLoadSample
fn default() -> StationLoadSample
Returns the “default value” for a type. Read more
impl Eq for StationLoadSample
Source§impl PartialEq for StationLoadSample
impl PartialEq for StationLoadSample
impl StructuralPartialEq for StationLoadSample
Auto Trait Implementations§
impl Freeze for StationLoadSample
impl RefUnwindSafe for StationLoadSample
impl Send for StationLoadSample
impl Sync for StationLoadSample
impl Unpin for StationLoadSample
impl UnsafeUnpin for StationLoadSample
impl UnwindSafe for StationLoadSample
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