pub enum EvictionReason {
BudgetExhausted {
needed: u32,
remaining: u32,
},
NotDeclared,
Superseded {
by: Digest,
},
PolicyDenied {
policy: String,
},
Other(String),
}Expand description
Why an item was refused.
Variants§
BudgetExhausted
Admitting it would have exceeded s_max.
Fields
NotDeclared
The step did not declare this source as necessary.
Superseded
Superseded by a fresher item covering the same ground.
PolicyDenied
Withheld by policy, e.g. a secret or out-of-scope material.
Other(String)
Anything else, named by the admitter.
Trait Implementations§
Source§impl Clone for EvictionReason
impl Clone for EvictionReason
Source§impl Debug for EvictionReason
impl Debug for EvictionReason
Source§impl<'de> Deserialize<'de> for EvictionReason
impl<'de> Deserialize<'de> for EvictionReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EvictionReason
Source§impl PartialEq for EvictionReason
impl PartialEq for EvictionReason
Source§impl Serialize for EvictionReason
impl Serialize for EvictionReason
impl StructuralPartialEq for EvictionReason
Auto Trait Implementations§
impl Freeze for EvictionReason
impl RefUnwindSafe for EvictionReason
impl Send for EvictionReason
impl Sync for EvictionReason
impl Unpin for EvictionReason
impl UnsafeUnpin for EvictionReason
impl UnwindSafe for EvictionReason
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> Canonical for T
impl<T> Canonical for T
Source§fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
The canonical CBOR encoding of this value.