#[non_exhaustive]pub struct ExecResult {
pub stdout: String,
pub stderr: String,
pub return_code: i32,
pub timed_out: bool,
pub stdout_truncated: bool,
pub stderr_truncated: bool,
pub stdout_complete: bool,
pub stderr_complete: bool,
}Expand description
The buffered result of a finished exec.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stdout: StringBuffered stdout, decoded as UTF-8.
stderr: StringBuffered stderr, decoded as UTF-8.
return_code: i32The command’s exit code.
timed_out: boolWhether the command was killed for exceeding its timeout.
stdout_truncated: boolWhether stdout overflowed the server output ring and lost its oldest bytes.
stderr_truncated: boolWhether stderr overflowed the server output ring and lost its oldest bytes.
stdout_complete: boolWhether the live stream delivered stdout through to the command’s exit.
When true, a consumer that streamed the output live already holds the
complete stdout even if stdout here is a truncated buffered tail. When
false (the stream ended before the exit, or no exit was observed),
stdout is the authoritative buffered copy to fall back on.
stderr_complete: boolWhether the live stream delivered stderr through to the command’s exit
(see stdout_complete).
Trait Implementations§
Source§impl Clone for ExecResult
impl Clone for ExecResult
Source§fn clone(&self) -> ExecResult
fn clone(&self) -> ExecResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecResult
impl Debug for ExecResult
Auto Trait Implementations§
impl Freeze for ExecResult
impl RefUnwindSafe for ExecResult
impl Send for ExecResult
impl Sync for ExecResult
impl Unpin for ExecResult
impl UnsafeUnpin for ExecResult
impl UnwindSafe for ExecResult
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request