pub struct InstalledPackage { /* private fields */ }Expand description
One immutable entry in the cache.
Implementations§
Source§impl InstalledPackage
impl InstalledPackage
pub fn version(&self) -> &RunnerVersion
Sourcepub fn root(&self) -> &Path
pub fn root(&self) -> &Path
The extracted package directory.
Read-only to the caller. Every JIT runtime is a copy or a link from
here (05-infrastructure.md), so a write into this directory reaches
every runtime created afterwards. See the module documentation’s seam
contract, and Self::contents for what catches one.
Sourcepub const fn installed_at(&self) -> Timestamp
pub const fn installed_at(&self) -> Timestamp
When this entry landed. The freshness deadline runs from here — see
PackageCache::is_stale for why install time is the honest proxy for
the moment the version was superseded.
Sourcepub fn contents(&self) -> Option<Arc<PackageContents>>
pub fn contents(&self) -> Option<Arc<PackageContents>>
What it must hold, read from its verified archive: only when the call that returned this unpacked it.
Trait Implementations§
Source§impl Clone for InstalledPackage
impl Clone for InstalledPackage
Source§impl Debug for InstalledPackage
impl Debug for InstalledPackage
impl Eq for InstalledPackage
Source§impl PartialEq for InstalledPackage
impl PartialEq for InstalledPackage
impl StructuralPartialEq for InstalledPackage
Auto Trait Implementations§
impl Forget for InstalledPackage
impl Freeze for InstalledPackage
impl Move for InstalledPackage
impl RefUnwindSafe for InstalledPackage
impl Send for InstalledPackage
impl Sync for InstalledPackage
impl Unpin for InstalledPackage
impl UnsafeUnpin for InstalledPackage
impl UnwindSafe for InstalledPackage
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.