MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / with_sandbox_grants

Method with_sandbox_grants

libatomic/src/daemon/state.rs:304–307  ·  view source on GitHub ↗

Keep sandbox grants in `grants` instead — a host that persists them in its own database, say. Install it before serving: grants issued by the sandbox handlers resolve through here.

(mut self, grants: std::sync::Arc<dyn SandboxGrants>)

Source from the content-addressed store, hash-verified

302 /// its own database, say. Install it before serving: grants issued by the
303 /// sandbox handlers resolve through here.
304 pub fn with_sandbox_grants(mut self, grants: std::sync::Arc<dyn SandboxGrants>) -> Self {
305 self.grants = grants;
306 self
307 }
308
309 /// Where this state's sandbox grants live.
310 pub fn sandbox_grants(&self) -> &std::sync::Arc<dyn SandboxGrants> {

Calls

no outgoing calls