pub struct ThumbnailEntry {
pub path: PathBuf,
pub file_size: u64,
}Expand description
Cached thumbnail entry.
Access recency is tracked by the enclosing LruCache — no explicit
last_accessed field. Previously the struct carried an Instant
that was set on insert but never bumped on access, so the “LRU”
eviction was effectively FIFO.
Fields§
§path: PathBuf§file_size: u64Trait Implementations§
Source§impl Clone for ThumbnailEntry
impl Clone for ThumbnailEntry
Source§fn clone(&self) -> ThumbnailEntry
fn clone(&self) -> ThumbnailEntry
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 moreAuto Trait Implementations§
impl Freeze for ThumbnailEntry
impl RefUnwindSafe for ThumbnailEntry
impl Send for ThumbnailEntry
impl Sync for ThumbnailEntry
impl Unpin for ThumbnailEntry
impl UnsafeUnpin for ThumbnailEntry
impl UnwindSafe for ThumbnailEntry
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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