pub struct SandboxStatus {
pub schema: &'static str,
pub scope: &'static str,
pub store: String,
pub present: bool,
pub images: Vec<CachedImage>,
pub attribution: Attribution,
pub unattributed: Vec<Unattributed>,
pub preserved: Vec<Preserved>,
pub live_boxes: usize,
pub total_bytes: u64,
}Expand description
What the sandbox store is holding.
§Why scope is a field and not a sentence in a doc comment
The same reason crate::tool_security::MachineScope carries one: an asset
root is a property of the machine, and a caller who selected a project
(ADR-0008) will otherwise read a store size as that project’s. There is one
sandbox store per asset root and every repository on the host shares it, so
the document says so in a field that travels with any half of it that gets
quoted.
Fields§
§schema: &'static strStable schema tag (SANDBOX_STATUS_SCHEMA).
scope: &'static strAlways "machine". The store is shared by every repository on this host.
store: StringThe store root these numbers describe.
present: boolWhether there is a store there at all. false means nothing is cached,
which is a different fact from an empty index.
images: Vec<CachedImage>Every image the index is holding, largest first.
attribution: AttributionWhether every derived artifact was claimed by one of them.
unattributed: Vec<Unattributed>Bytes no indexed image claims. A per-image clear never touches these.
preserved: Vec<Preserved>State a digest does not re-obtain, which clear will not remove.
live_boxes: usizeHow many boxes are registered. Non-zero blocks a clear.
total_bytes: u64Every byte under the store root.
Trait Implementations§
Source§impl Clone for SandboxStatus
impl Clone for SandboxStatus
Source§fn clone(&self) -> SandboxStatus
fn clone(&self) -> SandboxStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more