pub struct SpatialStats {
pub total_queries: u64,
pub avg_query_time_us: f32,
pub objects_tracked: usize,
}Expand description
Statistics for spatial queries
Fields§
§total_queries: u64Total queries performed
avg_query_time_us: f32Average query time in microseconds
objects_tracked: usizeNumber of objects tracked
Trait Implementations§
Source§impl Clone for SpatialStats
impl Clone for SpatialStats
Source§fn clone(&self) -> SpatialStats
fn clone(&self) -> SpatialStats
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 SpatialStats
impl Debug for SpatialStats
Source§impl Default for SpatialStats
impl Default for SpatialStats
Source§fn default() -> SpatialStats
fn default() -> SpatialStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpatialStats
impl<'de> Deserialize<'de> for SpatialStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpatialStats
impl RefUnwindSafe for SpatialStats
impl Send for SpatialStats
impl Sync for SpatialStats
impl Unpin for SpatialStats
impl UnsafeUnpin for SpatialStats
impl UnwindSafe for SpatialStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Event for T
impl<T> Event for T
Source§fn type_name() -> &'static str
fn type_name() -> &'static str
Returns the type name of this event for debugging and routing. Read more
Source§fn serialize(&self) -> Result<Vec<u8>, EventError>
fn serialize(&self) -> Result<Vec<u8>, EventError>
Serializes the event to bytes for network transmission or storage. Read more
Source§fn deserialize(data: &[u8]) -> Result<T, EventError>
fn deserialize(data: &[u8]) -> Result<T, EventError>
Deserializes an event from bytes. Read more