pub enum HostCacheSharing {
PerSession,
Shared,
}Expand description
Which dependency caches (Cargo, Go, pip, npm) sandboxed harness commands use.
Variants§
PerSession
Copies in the session’s own temporary directory, which host tools and other sessions never read.
The host’s own caches, which commands can then write, so a session could tamper with packages that other sessions and the host’s own builds later use.
Implementations§
Source§impl HostCacheSharing
impl HostCacheSharing
Sourcepub fn from_enabled(enabled: bool) -> Self
pub fn from_enabled(enabled: bool) -> Self
Returns the sharing a persisted on/off toggle selects.
Returns whether commands use the host’s own caches.
Trait Implementations§
Source§impl Clone for HostCacheSharing
impl Clone for HostCacheSharing
impl Copy for HostCacheSharing
Source§impl Debug for HostCacheSharing
impl Debug for HostCacheSharing
Source§impl Default for HostCacheSharing
impl Default for HostCacheSharing
impl Eq for HostCacheSharing
Source§impl PartialEq for HostCacheSharing
impl PartialEq for HostCacheSharing
impl StructuralPartialEq for HostCacheSharing
Auto Trait Implementations§
impl Forget for HostCacheSharing
impl Freeze for HostCacheSharing
impl Move for HostCacheSharing
impl RefUnwindSafe for HostCacheSharing
impl Send for HostCacheSharing
impl Sync for HostCacheSharing
impl Unpin for HostCacheSharing
impl UnsafeUnpin for HostCacheSharing
impl UnwindSafe for HostCacheSharing
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.