pub struct PoolStats {
pub created: u64,
pub reused: u64,
pub evicted: u64,
pub in_use: u64,
pub free: usize,
pub keys: usize,
}Expand description
A TexturePool’s counters, as of the TexturePool::stats call.
Fields§
§created: u64Textures the pool has ever asked the allocator for. The number a resize-storm test holds against a budget.
reused: u64Acquires satisfied from a free entry instead of an allocation.
evicted: u64Entries dropped by TexturePool::age.
in_use: u64Entries acquired and not yet released.
free: usizeEntries currently parked and reusable.
keys: usizeDistinct PoolKeys with at least one parked entry.
Trait Implementations§
impl Copy for PoolStats
impl Eq for PoolStats
impl StructuralPartialEq for PoolStats
Auto Trait Implementations§
impl Freeze for PoolStats
impl RefUnwindSafe for PoolStats
impl Send for PoolStats
impl Sync for PoolStats
impl Unpin for PoolStats
impl UnsafeUnpin for PoolStats
impl UnwindSafe for PoolStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.