pub struct LocalActionCache { /* private fields */ }Expand description
A local index from action digests to their referenced cache objects.
Implementations§
Source§impl LocalActionCache
impl LocalActionCache
Sourcepub fn path_for(&self, action: &CacheDigest) -> Result<PathBuf>
pub fn path_for(&self, action: &CacheDigest) -> Result<PathBuf>
Resolve the storage path for an action digest.
Sourcepub fn find(&self, action: &CacheDigest) -> Result<Option<RemoteActionResult>>
pub fn find(&self, action: &CacheDigest) -> Result<Option<RemoteActionResult>>
Find and strictly validate a canonical action result.
Sourcepub fn store(&self, result: &RemoteActionResult) -> Result<PathBuf>
pub fn store(&self, result: &RemoteActionResult) -> Result<PathBuf>
Atomically publish an action result after validating all referenced objects.
Trait Implementations§
Source§impl Clone for LocalActionCache
impl Clone for LocalActionCache
Source§fn clone(&self) -> LocalActionCache
fn clone(&self) -> LocalActionCache
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 LocalActionCache
impl RefUnwindSafe for LocalActionCache
impl Send for LocalActionCache
impl Sync for LocalActionCache
impl Unpin for LocalActionCache
impl UnsafeUnpin for LocalActionCache
impl UnwindSafe for LocalActionCache
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