pub struct NativeBuildArtifactCache { /* private fields */ }Implementations§
Source§impl NativeBuildArtifactCache
impl NativeBuildArtifactCache
pub fn new( root: impl Into<PathBuf>, ) -> Result<Self, NativeBuildArtifactCacheError>
pub fn root(&self) -> &Path
pub fn restore( &self, spec: &NativeBuildArtifactSpec, destination: impl AsRef<Path>, ) -> Result<NativeBuildArtifactLookup, NativeBuildArtifactCacheError>
pub fn publish( &self, spec: &NativeBuildArtifactSpec, source: impl AsRef<Path>, ) -> Result<NativeBuildArtifactCacheReceipt, NativeBuildArtifactCacheError>
Trait Implementations§
Source§impl Clone for NativeBuildArtifactCache
impl Clone for NativeBuildArtifactCache
Source§fn clone(&self) -> NativeBuildArtifactCache
fn clone(&self) -> NativeBuildArtifactCache
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 moreAuto Trait Implementations§
impl Freeze for NativeBuildArtifactCache
impl RefUnwindSafe for NativeBuildArtifactCache
impl Send for NativeBuildArtifactCache
impl Sync for NativeBuildArtifactCache
impl Unpin for NativeBuildArtifactCache
impl UnsafeUnpin for NativeBuildArtifactCache
impl UnwindSafe for NativeBuildArtifactCache
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