summaryrefslogtreecommitdiffstats
path: root/src/sandbox/kata.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sandbox/kata.rs')
-rw-r--r--src/sandbox/kata.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sandbox/kata.rs b/src/sandbox/kata.rs
index 1f24ce7..84a79e4 100644
--- a/src/sandbox/kata.rs
+++ b/src/sandbox/kata.rs
@@ -18,6 +18,7 @@ use crate::sandbox::wire::{self, Frame};
use crate::sandbox::{Sandbox, SandboxBackend, SandboxInfo, SandboxSpec};
#[derive(Debug, Clone)]
+// ProvisionRequest stays `pub`: the argument of `Provisioner::provision`, the trait the public `LocalAgentProvisioner` implements.
pub struct ProvisionRequest {
pub sandbox_id: String,
pub profile: String,
@@ -27,6 +28,7 @@ pub struct ProvisionRequest {
pub image: String,
}
+// Provisioner stays `pub`: implemented by the test-gated public `LocalAgentProvisioner`; a private trait on a public impl is E0445.
pub trait Provisioner: Send + Sync {
fn provision(&self, req: &ProvisionRequest) -> Result<()>;
fn reclaim(&self, sandbox_id: &str) -> Result<()>;