pub trait CacheHashKey {
// Required methods
fn primary_bin(&self) -> HashBinary;
fn variance_bin(&self) -> Option<HashBinary>;
fn user_tag(&self) -> &str;
// Provided methods
fn combined_bin(&self) -> HashBinary { ... }
fn primary(&self) -> String { ... }
fn variance(&self) -> Option<String> { ... }
fn combined(&self) -> String { ... }
}
Expand description
The trait for cache key
Required Methods§
Sourcefn primary_bin(&self) -> HashBinary
fn primary_bin(&self) -> HashBinary
Return the hash of the cache key
Sourcefn variance_bin(&self) -> Option<HashBinary>
fn variance_bin(&self) -> Option<HashBinary>
Return the variance hash of the cache key.
None
if no variance.
Provided Methods§
Sourcefn combined_bin(&self) -> HashBinary
fn combined_bin(&self) -> HashBinary
Return the hash including both primary and variance keys
Sourcefn primary(&self) -> String
fn primary(&self) -> String
The hex string of Self::primary_bin()
Sourcefn variance(&self) -> Option<String>
fn variance(&self) -> Option<String>
The hex string of Self::variance_bin()
Sourcefn combined(&self) -> String
fn combined(&self) -> String
The hex string of Self::combined_bin()