#[non_exhaustive]pub struct CachedObject {
pub sha256: String,
pub path: PathBuf,
pub size_bytes: u64,
pub last_used: Option<SystemTime>,
pub component: Option<String>,
}Expand description
One installed object in the cache.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sha256: StringThe archive digest naming the object directory.
path: PathBuf§size_bytes: u64Total size of the files under path.
last_used: Option<SystemTime>When the object was last loaded through a cache (falls back to install time).
component: Option<String>The component id in this manager’s lock that references the object, when any.
Trait Implementations§
Source§impl Clone for CachedObject
impl Clone for CachedObject
Source§impl Debug for CachedObject
impl Debug for CachedObject
impl Eq for CachedObject
Source§impl PartialEq for CachedObject
impl PartialEq for CachedObject
impl StructuralPartialEq for CachedObject
Auto Trait Implementations§
impl Forget for CachedObject
impl Freeze for CachedObject
impl Move for CachedObject
impl RefUnwindSafe for CachedObject
impl Send for CachedObject
impl Sync for CachedObject
impl Unpin for CachedObject
impl UnsafeUnpin for CachedObject
impl UnwindSafe for CachedObject
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