pub struct LocalExecBackend { /* private fields */ }Expand description
Local command execution via spawn_blocking (DESIGN §6.2 ExecBackend
built-). argv is executed directly — never a shell string.
secret hygiene, applied at this (the only) local spawn site:
- Environment:
ExecEnvPolicybounds what the child inherits. The default is today’s full inheritance (the config-compat clause); allowlist mode clears the environment and passes only the listed variables plusDRY_RUN— server secrets never reach the child, so a child-sideenvdump has nothing to leak. - Output: every stdout/stderr byte passes the
SecretRedactorbefore leaving this backend, so no caller (tool result, event stream, transcript envelope) can observe a secret verbatim. The default redactor keeps pattern scanning on; assembly layers the configured secret values on top.
Implementations§
Source§impl LocalExecBackend
impl LocalExecBackend
pub fn new() -> Self
Sourcepub fn with_default_timeout(self, timeout_ms: u64) -> Self
pub fn with_default_timeout(self, timeout_ms: u64) -> Self
Overrides the timeout applied when a command carries none.
Sourcepub fn with_env_policy(self, policy: ExecEnvPolicy) -> Self
pub fn with_env_policy(self, policy: ExecEnvPolicy) -> Self
Sets the child environment policy. Inherit (the
default) keeps today’s full-passthrough behavior.
Sourcepub fn with_redactor(self, redactor: SecretRedactor) -> Self
pub fn with_redactor(self, redactor: SecretRedactor) -> Self
Sets the output redactor. The default is patterns-only; assembly builds the full redactor from the configured secret env names.
Trait Implementations§
Source§impl Clone for LocalExecBackend
impl Clone for LocalExecBackend
Source§impl Debug for LocalExecBackend
impl Debug for LocalExecBackend
Source§impl Default for LocalExecBackend
impl Default for LocalExecBackend
Source§impl ExecBackend for LocalExecBackend
impl ExecBackend for LocalExecBackend
fn exec( &self, cmd: ExecCommand, ) -> BoxFuture<'static, Result<ExecResult, ExecError>>
Auto Trait Implementations§
impl Forget for LocalExecBackend
impl Freeze for LocalExecBackend
impl Move for LocalExecBackend
impl RefUnwindSafe for LocalExecBackend
impl Send for LocalExecBackend
impl Sync for LocalExecBackend
impl Unpin for LocalExecBackend
impl UnsafeUnpin for LocalExecBackend
impl UnwindSafe for LocalExecBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more