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>)
| 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> { |
no outgoing calls