Struct PackageCacheLayer
pub struct PackageCacheLayer { /* private fields */ }Implementations§
§impl PackageCacheLayer
impl PackageCacheLayer
pub fn is_readonly(&self) -> bool
pub fn is_readonly(&self) -> bool
Determine if the layer is read-only in the filesystem
pub async fn try_validate(
&self,
cache_key: &CacheKey,
) -> Result<CacheMetadata, PackageCacheLayerError>
pub async fn try_validate( &self, cache_key: &CacheKey, ) -> Result<CacheMetadata, PackageCacheLayerError>
Validate the packages.
pub async fn validate_or_fetch<F, Fut, E>(
&self,
fetch: F,
cache_key: &CacheKey,
reporter: Option<Arc<dyn CacheReporter>>,
) -> Result<CacheMetadata, PackageCacheLayerError>
pub async fn validate_or_fetch<F, Fut, E>( &self, fetch: F, cache_key: &CacheKey, reporter: Option<Arc<dyn CacheReporter>>, ) -> Result<CacheMetadata, PackageCacheLayerError>
Validate the package, and fetch it if invalid.
Auto Trait Implementations§
impl Freeze for PackageCacheLayer
impl !RefUnwindSafe for PackageCacheLayer
impl Send for PackageCacheLayer
impl Sync for PackageCacheLayer
impl Unpin for PackageCacheLayer
impl !UnwindSafe for PackageCacheLayer
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<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 moreCreates a shared type from an unshared type.