pub struct OciPackerCache { /* private fields */ }Implementations§
Source§impl OciPackerCache
impl OciPackerCache
pub async fn new(cache_dir: &Path) -> Result<OciPackerCache>
pub async fn list(&self) -> Result<Vec<Descriptor>>
pub async fn resolve( &self, name: ImageName, format: OciPackedFormat, ) -> Result<Option<OciResolvedImage>>
pub async fn recall( &self, name: ImageName, digest: &str, format: OciPackedFormat, ) -> Result<Option<OciPackedImage>>
pub async fn store(&self, packed: OciPackedImage) -> Result<OciPackedImage>
Trait Implementations§
Source§impl Clone for OciPackerCache
impl Clone for OciPackerCache
Source§fn clone(&self) -> OciPackerCache
fn clone(&self) -> OciPackerCache
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OciPackerCache
impl !RefUnwindSafe for OciPackerCache
impl Send for OciPackerCache
impl Sync for OciPackerCache
impl Unpin for OciPackerCache
impl !UnwindSafe for OciPackerCache
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