pub struct UnusableFill {
pub token: u64,
pub reason: &'static str,
}Expand description
One fill a reader cannot use, and why. Per token rather than per set, because a
key has one UnusableFills and a set-wide reason would attribute one part of
an application’s give-up to another’s cause.
Fields§
§token: u64Names a fill this reader cannot use. Opaque to the cache: whatever the writer and reader agree it means.
reason: &'static strWhy, as the crate::NoCacheReason::Custom label the cache disables with.
Not a whole crate::NoCacheReason: the cause belongs to the application,
and a caller could otherwise pass crate::NoCacheReason::NeverEnabled,
which crate::HttpCache::disable rejects.
Trait Implementations§
Source§impl Clone for UnusableFill
impl Clone for UnusableFill
Source§fn clone(&self) -> UnusableFill
fn clone(&self) -> UnusableFill
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 UnusableFill
Source§impl Debug for UnusableFill
impl Debug for UnusableFill
impl Eq for UnusableFill
Source§impl PartialEq for UnusableFill
impl PartialEq for UnusableFill
impl StructuralPartialEq for UnusableFill
Auto Trait Implementations§
impl Freeze for UnusableFill
impl RefUnwindSafe for UnusableFill
impl Send for UnusableFill
impl Sync for UnusableFill
impl Unpin for UnusableFill
impl UnsafeUnpin for UnusableFill
impl UnwindSafe for UnusableFill
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.