pub struct CachedRuntimePackages { /* private fields */ }Expand description
Production package adapter. It takes an e2 lease before returning, so a cache entry can never look unused while its runtime is starting.
Implementations§
Source§impl CachedRuntimePackages
impl CachedRuntimePackages
pub fn new(cache: Arc<PackageCache>) -> Self
Trait Implementations§
Source§impl Debug for CachedRuntimePackages
impl Debug for CachedRuntimePackages
Source§impl RuntimePackages for CachedRuntimePackages
impl RuntimePackages for CachedRuntimePackages
fn materialize<'life0, 'life1, 'async_trait>(
&'life0 self,
attempt: &'life1 RunnerAttempt,
) -> Pin<Box<dyn Future<Output = Result<RunnerVersion, FailureReason>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn release(&self, attempt: AttemptId) -> Result<(), FailureReason>
fn prune_obsolete_guarded( &self, _authority: PruneAuthority<'_>, current: &RunnerVersion, attempts: &[RunnerAttempt], ) -> Result<(), FailureReason>
Auto Trait Implementations§
impl !RefUnwindSafe for CachedRuntimePackages
impl !UnwindSafe for CachedRuntimePackages
impl Freeze for CachedRuntimePackages
impl Send for CachedRuntimePackages
impl Sync for CachedRuntimePackages
impl Unpin for CachedRuntimePackages
impl UnsafeUnpin for CachedRuntimePackages
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