pub struct RunOptions {
pub cwd: String,
pub envs: HashMap<String, String>,
pub timeout: Option<Duration>,
pub stdin: Vec<u8>,
pub on_stdout: Option<TextCallback>,
pub on_stderr: Option<TextCallback>,
}Expand description
Configures Commands::run_with and Commands::run_args_with.
Fields§
§cwd: StringThe working directory (default /work; relative paths resolve against /work).
envs: HashMap<String, String>Added to the sandbox-level environment (and override it).
timeout: Option<Duration>Kills the command after this long. None means DEFAULT_COMMAND_TIMEOUT;
Some(Duration::ZERO) means no limit. The plane enforces it.
stdin: Vec<u8>Sent to the command (at most 16 MiB), then closed.
on_stdout: Option<TextCallback>Receive output as it arrives. A character whose bytes arrive in two pieces is delivered whole, with the later piece.
on_stderr: Option<TextCallback>Trait Implementations§
Source§impl Debug for RunOptions
impl Debug for RunOptions
Source§impl Default for RunOptions
impl Default for RunOptions
Source§fn default() -> RunOptions
fn default() -> RunOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RunOptions
impl !RefUnwindSafe for RunOptions
impl Send for RunOptions
impl !Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
impl !UnwindSafe for RunOptions
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].