pub struct CredentialPartition(/* private fields */);Expand description
Identifies the credential state a trusted-origin response was fetched under, so the cache can
keep bodies of different states apart (see
HttpCache::get_cached_trusted_origin_response).
A distinct type from the credential-header digests used for pinned requests: the two are both hashes, but only a partition is a statement about “which state”, and mixing them up would silently share or split cache entries.
§Examples
use deps_core::cache::CredentialPartition;
assert_eq!(CredentialPartition::new(7), CredentialPartition::new(7));
assert_ne!(CredentialPartition::new(7), CredentialPartition::new(8));Implementations§
Trait Implementations§
Source§impl Clone for CredentialPartition
impl Clone for CredentialPartition
impl Copy for CredentialPartition
Source§impl Debug for CredentialPartition
impl Debug for CredentialPartition
impl Eq for CredentialPartition
Source§impl Hash for CredentialPartition
impl Hash for CredentialPartition
Source§impl PartialEq for CredentialPartition
impl PartialEq for CredentialPartition
impl StructuralPartialEq for CredentialPartition
Auto Trait Implementations§
impl Forget for CredentialPartition
impl Freeze for CredentialPartition
impl Move for CredentialPartition
impl RefUnwindSafe for CredentialPartition
impl Send for CredentialPartition
impl Sync for CredentialPartition
impl Unpin for CredentialPartition
impl UnsafeUnpin for CredentialPartition
impl UnwindSafe for CredentialPartition
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
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§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.