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. Nothing in this module can detect such
a write after the fact; see the module documentation’s seam contract.
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.
Trait Implementations§
Source§impl Clone for InstalledPackage
impl Clone for InstalledPackage
Source§fn clone(&self) -> InstalledPackage
fn clone(&self) -> InstalledPackage
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 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 Freeze 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.