pub struct CacheKey(/* private fields */);Expand description
Opaque per-session query key.
Implementations§
Source§impl CacheKey
impl CacheKey
Sourcepub fn derive(
session_secret: &[u8; 32],
network_id: u8,
generation: CacheGeneration,
name: &Name,
record_type: RecordType,
) -> Result<Self, CacheError>
pub fn derive( session_secret: &[u8; 32], network_id: u8, generation: CacheGeneration, name: &Name, record_type: RecordType, ) -> Result<Self, CacheError>
Derive a key from a secret runtime salt and canonical query identity.
Trait Implementations§
impl Copy for CacheKey
impl Eq for CacheKey
impl StructuralPartialEq for CacheKey
Auto Trait Implementations§
impl Freeze for CacheKey
impl RefUnwindSafe for CacheKey
impl Send for CacheKey
impl Sync for CacheKey
impl Unpin for CacheKey
impl UnsafeUnpin for CacheKey
impl UnwindSafe for CacheKey
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