#[non_exhaustive]pub enum CacheEntryProblem {
Metadata(ThumbnailMetadataProblem),
UnreadableEntry,
UnverifiableOriginal,
InvalidPngStructure,
NonconformingPngFormat,
DimensionsExceedNamespace,
ResourceLimitExceeded,
NonstandardFilename,
UriFilenameMismatch,
}Expand description
Policy-neutral problem found while validating or inspecting a cache entry.
This is a compact fact vocabulary for caller policy branching, not a detailed diagnostic
surface that carries expected and actual values for every failure class. Metadata problems carry
typed detail through ThumbnailMetadataProblem; future non-metadata detail should be exposed
separately instead of changing existing variant payloads.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Metadata(ThumbnailMetadataProblem)
A standard thumbnail metadata key is missing, malformed, or does not match.
UnreadableEntry
The cache entry itself could not be read well enough to validate.
UnverifiableOriginal
The original cannot be verified in this validation context.
InvalidPngStructure
PNG structure could not be decoded.
NonconformingPngFormat
PNG encoding does not conform to the successful-thumbnail requirements.
DimensionsExceedNamespace
PNG dimensions exceed the requested namespace.
ResourceLimitExceeded
PNG decoding would exceed configured resource limits.
NonstandardFilename
The cache directory entry is not a standard thumbnail filename.
UriFilenameMismatch
The standard cache filename does not match the stored thumbnail URI identity.
Trait Implementations§
Source§impl Clone for CacheEntryProblem
impl Clone for CacheEntryProblem
Source§fn clone(&self) -> CacheEntryProblem
fn clone(&self) -> CacheEntryProblem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CacheEntryProblem
impl Debug for CacheEntryProblem
Source§impl Hash for CacheEntryProblem
impl Hash for CacheEntryProblem
Source§impl PartialEq for CacheEntryProblem
impl PartialEq for CacheEntryProblem
Source§fn eq(&self, other: &CacheEntryProblem) -> bool
fn eq(&self, other: &CacheEntryProblem) -> bool
self and other values to be equal, and is used by ==.impl Copy for CacheEntryProblem
impl Eq for CacheEntryProblem
impl StructuralPartialEq for CacheEntryProblem
Auto Trait Implementations§
impl Freeze for CacheEntryProblem
impl RefUnwindSafe for CacheEntryProblem
impl Send for CacheEntryProblem
impl Sync for CacheEntryProblem
impl Unpin for CacheEntryProblem
impl UnsafeUnpin for CacheEntryProblem
impl UnwindSafe for CacheEntryProblem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more