pub struct CachedRepresentationRow {
pub uuid: String,
pub tier: String,
pub format: Option<String>,
pub bytes: i64,
pub path: String,
pub last_accessed_at: i64,
pub pinned: bool,
pub is_owned_original: bool,
}Expand description
One cached, reclaimable representation of an asset. The eviction sweep ranks these by
last_accessed_at (LRU) with tier as the tiebreaker; pinned and is_owned_original
rows are exempt. path is the on-disk cache file the sweep deletes.
Fields§
§uuid: String§tier: String"original" | "preview" | "thumbnail".
format: Option<String>§bytes: i64§path: String§last_accessed_at: i64§pinned: bool§is_owned_original: boolAn original this device itself owns as source of truth — never auto-evicted.
Trait Implementations§
Source§impl Clone for CachedRepresentationRow
impl Clone for CachedRepresentationRow
Source§fn clone(&self) -> CachedRepresentationRow
fn clone(&self) -> CachedRepresentationRow
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 moreSource§impl Debug for CachedRepresentationRow
impl Debug for CachedRepresentationRow
Source§impl PartialEq for CachedRepresentationRow
impl PartialEq for CachedRepresentationRow
Source§fn eq(&self, other: &CachedRepresentationRow) -> bool
fn eq(&self, other: &CachedRepresentationRow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CachedRepresentationRow
Auto Trait Implementations§
impl Freeze for CachedRepresentationRow
impl RefUnwindSafe for CachedRepresentationRow
impl Send for CachedRepresentationRow
impl Sync for CachedRepresentationRow
impl Unpin for CachedRepresentationRow
impl UnsafeUnpin for CachedRepresentationRow
impl UnwindSafe for CachedRepresentationRow
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,
§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