pub struct CacheTool {
pub id: &'static str,
pub dir: &'static str,
pub sharing: Sharing,
pub default_enabled: bool,
pub variables: &'static [CacheVariable],
pub note: &'static str,
}Expand description
One tool, or one family of variables that is switched on and off together.
Fields§
§id: &'static strThe name host cache set-tool and caches.toml use.
dir: &'static strThe directory under the namespace (or the slot) the variables point at.
sharing: Sharing§default_enabled: boolWhether a host that says nothing about this tool gets it.
variables: &'static [CacheVariable]§note: &'static strOne line for host cache show: what it covers or why it is opt-in.
Implementations§
Source§impl CacheTool
impl CacheTool
Sourcepub fn variables_on(
&self,
platform: RunnerPlatform,
) -> impl Iterator<Item = &CacheVariable>
pub fn variables_on( &self, platform: RunnerPlatform, ) -> impl Iterator<Item = &CacheVariable>
The variables this tool sets on platform.
Sourcepub fn applies_to(&self, platform: RunnerPlatform) -> bool
pub fn applies_to(&self, platform: RunnerPlatform) -> bool
Whether the tool sets anything on platform.
Trait Implementations§
impl Copy for CacheTool
impl Eq for CacheTool
impl StructuralPartialEq for CacheTool
Auto Trait Implementations§
impl Forget for CacheTool
impl Freeze for CacheTool
impl RefUnwindSafe for CacheTool
impl Send for CacheTool
impl Sync for CacheTool
impl Unpin for CacheTool
impl UnsafeUnpin for CacheTool
impl UnwindSafe for CacheTool
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