pub struct WgpuPipelineCacheSnapshot {
pub entries: usize,
pub hits: usize,
pub misses: usize,
pub evictions: usize,
}Expand description
Snapshot of cache pressure and reuse.
Fields§
§entries: usizeCached pipeline count.
hits: usizeNumber of cache hits.
misses: usizeNumber of cache misses.
evictions: usizeNumber of oldest-entry evictions.
Trait Implementations§
Source§impl Clone for WgpuPipelineCacheSnapshot
impl Clone for WgpuPipelineCacheSnapshot
Source§fn clone(&self) -> WgpuPipelineCacheSnapshot
fn clone(&self) -> WgpuPipelineCacheSnapshot
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 WgpuPipelineCacheSnapshot
impl Debug for WgpuPipelineCacheSnapshot
Source§impl Default for WgpuPipelineCacheSnapshot
impl Default for WgpuPipelineCacheSnapshot
Source§fn default() -> WgpuPipelineCacheSnapshot
fn default() -> WgpuPipelineCacheSnapshot
Returns the “default value” for a type. Read more
impl Eq for WgpuPipelineCacheSnapshot
impl StructuralPartialEq for WgpuPipelineCacheSnapshot
Auto Trait Implementations§
impl Freeze for WgpuPipelineCacheSnapshot
impl RefUnwindSafe for WgpuPipelineCacheSnapshot
impl Send for WgpuPipelineCacheSnapshot
impl Sync for WgpuPipelineCacheSnapshot
impl Unpin for WgpuPipelineCacheSnapshot
impl UnsafeUnpin for WgpuPipelineCacheSnapshot
impl UnwindSafe for WgpuPipelineCacheSnapshot
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.