pub struct CacheMissMetadata {
pub cache_namespace: u32,
pub cache_key_hi: u64,
pub cache_key_lo: u64,
pub miss_reason: CacheMissReason,
pub profile_id: u16,
pub diagnostic_bytes: u32,
}Fields§
§cache_namespace: u32§cache_key_hi: u64§cache_key_lo: u64§miss_reason: CacheMissReason§profile_id: u16§diagnostic_bytes: u32Implementations§
Source§impl CacheMissMetadata
impl CacheMissMetadata
pub fn parse(source: &[u8]) -> Result<Self, NnrpError>
pub fn write(&self, destination: &mut [u8]) -> Result<(), NnrpError>
pub fn to_bytes(&self) -> Result<[u8; 32], NnrpError>
pub fn parse_with_diagnostics(source: &[u8]) -> Result<(Self, &[u8]), NnrpError>
pub fn to_vec_with_diagnostics( &self, diagnostics: &[u8], ) -> Result<Vec<u8>, NnrpError>
Trait Implementations§
Source§impl Clone for CacheMissMetadata
impl Clone for CacheMissMetadata
Source§fn clone(&self) -> CacheMissMetadata
fn clone(&self) -> CacheMissMetadata
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 CacheMissMetadata
Source§impl Debug for CacheMissMetadata
impl Debug for CacheMissMetadata
impl Eq for CacheMissMetadata
Source§impl PartialEq for CacheMissMetadata
impl PartialEq for CacheMissMetadata
impl StructuralPartialEq for CacheMissMetadata
Auto Trait Implementations§
impl Freeze for CacheMissMetadata
impl RefUnwindSafe for CacheMissMetadata
impl Send for CacheMissMetadata
impl Sync for CacheMissMetadata
impl Unpin for CacheMissMetadata
impl UnsafeUnpin for CacheMissMetadata
impl UnwindSafe for CacheMissMetadata
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