pub struct ExecOptions<'a> {
pub dir: String,
pub no_dir: bool,
pub stdin: Vec<u8>,
pub timeout: Option<Duration>,
pub stdout: Option<OutputSink<'a>>,
pub stderr: Option<OutputSink<'a>>,
}Expand description
Configures Client::exec.
Fields§
§dir: StringThe working directory, absolute or relative to /work. Empty means /work, as with
chainctl develop exec (the plane itself starts commands in /). Set no_dir to pass argv
through unwrapped.
no_dir: bool§stdin: Vec<u8>Passed to the command (at most MAX_EXEC_STDIN bytes).
timeout: Option<Duration>Stops the command; the result then has timed_out set.
stdout: Option<OutputSink<'a>>Receive output as it streams; None discards it.
stderr: Option<OutputSink<'a>>Trait Implementations§
Source§impl Debug for ExecOptions<'_>
impl Debug for ExecOptions<'_>
Source§impl<'a> Default for ExecOptions<'a>
impl<'a> Default for ExecOptions<'a>
Source§fn default() -> ExecOptions<'a>
fn default() -> ExecOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ExecOptions<'a>
impl<'a> !RefUnwindSafe for ExecOptions<'a>
impl<'a> Send for ExecOptions<'a>
impl<'a> !Sync for ExecOptions<'a>
impl<'a> Unpin for ExecOptions<'a>
impl<'a> UnsafeUnpin for ExecOptions<'a>
impl<'a> !UnwindSafe for ExecOptions<'a>
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].