pub struct CacheEntryInspection { /* private fields */ }Expand description
Policy-neutral inspection facts for a cache entry.
Implementations§
Source§impl CacheEntryInspection
impl CacheEntryInspection
Sourcepub const fn outcome(&self) -> &CacheEntryInspectionOutcome
pub const fn outcome(&self) -> &CacheEntryInspectionOutcome
Returns the validation or inspection outcome.
Sourcepub const fn original_uri(&self) -> Option<&OriginalUriIdentity>
pub const fn original_uri(&self) -> Option<&OriginalUriIdentity>
Returns the original URI parsed from metadata when present and valid.
Sourcepub const fn metadata(&self) -> Option<&ThumbnailMetadata>
pub const fn metadata(&self) -> Option<&ThumbnailMetadata>
Returns parsed metadata when the entry was a readable PNG.
Sourcepub const fn timestamps(&self) -> &ThumbnailTimestamps
pub const fn timestamps(&self) -> &ThumbnailTimestamps
Returns timestamp facts.
Sourcepub const fn namespace(&self) -> &CacheNamespace
pub const fn namespace(&self) -> &CacheNamespace
Returns the cache namespace.
Sourcepub const fn removal_handle(&self) -> &CacheEntryHandle
pub const fn removal_handle(&self) -> &CacheEntryHandle
Returns a handle that can safely remove this cache entry.
Sourcepub fn into_handle(self) -> CacheEntryHandle
pub fn into_handle(self) -> CacheEntryHandle
Consumes this inspection and returns its removal handle.
Sourcepub fn into_parts(self) -> CacheEntryInspectionParts
pub fn into_parts(self) -> CacheEntryInspectionParts
Splits this inspection into its owned facts and removal handle.
Trait Implementations§
Source§impl Debug for CacheEntryInspection
impl Debug for CacheEntryInspection
Source§impl PartialEq for CacheEntryInspection
impl PartialEq for CacheEntryInspection
Source§fn eq(&self, other: &CacheEntryInspection) -> bool
fn eq(&self, other: &CacheEntryInspection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CacheEntryInspection
impl StructuralPartialEq for CacheEntryInspection
Auto Trait Implementations§
impl Freeze for CacheEntryInspection
impl RefUnwindSafe for CacheEntryInspection
impl Send for CacheEntryInspection
impl Sync for CacheEntryInspection
impl Unpin for CacheEntryInspection
impl UnsafeUnpin for CacheEntryInspection
impl UnwindSafe for CacheEntryInspection
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> 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>
Converts
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>
Converts
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