pub struct CachePayload {
pub layer: u8,
pub hit: bool,
pub key: u64,
pub size: u64,
}Expand description
Payload for cache events.
Fields§
§layer: u8Cache layer (1 DXIL, 2 IR, 3 SPIR-V, 4 pipeline).
hit: boolWhether the lookup hit.
key: u64Content key hash.
size: u64Artifact size in bytes.
Trait Implementations§
Source§impl Clone for CachePayload
impl Clone for CachePayload
Source§fn clone(&self) -> CachePayload
fn clone(&self) -> CachePayload
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 CachePayload
Source§impl Debug for CachePayload
impl Debug for CachePayload
Source§impl Default for CachePayload
impl Default for CachePayload
Source§fn default() -> CachePayload
fn default() -> CachePayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CachePayload
impl<'de> Deserialize<'de> for CachePayload
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
impl Eq for CachePayload
Source§impl PartialEq for CachePayload
impl PartialEq for CachePayload
Source§impl Serialize for CachePayload
impl Serialize for CachePayload
impl StructuralPartialEq for CachePayload
Auto Trait Implementations§
impl Freeze for CachePayload
impl RefUnwindSafe for CachePayload
impl Send for CachePayload
impl Sync for CachePayload
impl Unpin for CachePayload
impl UnsafeUnpin for CachePayload
impl UnwindSafe for CachePayload
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