pub struct ExecIo { /* private fields */ }Implementations§
Source§impl ExecIo
impl ExecIo
pub fn new() -> Self
pub fn set_stdin(&mut self, stdin: Option<SharedInput>)
pub fn set_stdout(&mut self, stdout: Option<SharedOutput>)
pub fn set_stderr(&mut self, stderr: Option<SharedOutput>)
Sourcepub fn set_remote_runner_for_target(
&mut self,
target: String,
runner: Arc<dyn RemoteRunner>,
) -> &mut Self
pub fn set_remote_runner_for_target( &mut self, target: String, runner: Arc<dyn RemoteRunner>, ) -> &mut Self
Stage the transport behind one REMOTE target. Chainable; the NET
plugin registers one session per inventory target at CLI startup
and tests stage mocks. Registration is inert (no process spawns
until a block entry runs).
Sourcepub fn remote_runner(&self, target: &str) -> Option<Arc<dyn RemoteRunner>>
pub fn remote_runner(&self, target: &str) -> Option<Arc<dyn RemoteRunner>>
The staged remote transport for target, if any. REMOTE
interception bails when the target has no runner.
Sourcepub fn set_remote_runner(&mut self, runner: Arc<dyn RemoteRunner>) -> &mut Self
pub fn set_remote_runner(&mut self, runner: Arc<dyn RemoteRunner>) -> &mut Self
Legacy single-runner staging: registers under the empty target.
Prefer set_remote_runner_for_target.
Sourcepub fn set_remote_guest(&mut self, guest: bool) -> &mut Self
pub fn set_remote_guest(&mut self, guest: bool) -> &mut Self
Mark this run as executing inside a remote guest serve loop. In
guest mode, flagged COPY --from-host / --to-host steps are
transfer declarations already fulfilled by the session, so they
acknowledge as no-ops instead of re-copying. Never set on hosts:
the parser rejects flagged copies outside REMOTE bodies, and
hosts never execute REMOTE bodies.
Sourcepub fn is_remote_guest(&self) -> bool
pub fn is_remote_guest(&self) -> bool
Whether flagged COPY transfer declarations acknowledge as no-ops.
Sourcepub fn set_push_manifest_sink(&mut self, sink: PushManifestSink) -> &mut Self
pub fn set_push_manifest_sink(&mut self, sink: PushManifestSink) -> &mut Self
Stage the shared push-manifest sink for a guest serve loop.
Chainable. Executed flagged COPY steps append here; the serve
loop packs exactly these entries after the engine joins.
pub fn insert_inherit_env<S: Into<String>, V: Into<String>>( &mut self, key: S, value: V, )
pub fn remove_inherit_env<S: Into<String>>(&mut self, key: S)
pub fn inherit_env_value(&self, key: &str) -> Option<&String>
pub fn inherit_env_is_removed(&self, key: &str) -> bool
pub fn inherit_env_overrides(&self) -> &HashMap<String, String>
Sourcepub fn peek_pipe_content(&self, handle: &PipeHandle) -> Result<Vec<u8>>
pub fn peek_pipe_content(&self, handle: &PipeHandle) -> Result<Vec<u8>>
Non-destructive snapshot of a script handle’s buffered bytes for pipe-content assertions.
Public so out-of-crate harnesses can assert on script-owned pipes
after a run completes, via the PIPE values in the returned
bindings. Only meaningful once writers detached (post-run);
unbound handles and OS pairs bail loudly.