#[non_exhaustive]pub struct StreamOutput {
pub status: ExitStatus,
pub cancelled: bool,
pub timed_out: bool,
pub stdout_tail: Vec<u8>,
pub stderr_tail: String,
}Expand description
What run_streaming observed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: ExitStatusThe program’s exit status. When cancelled or timed_out is true, the status of the
terminated tree’s leader (on Unix, usually a signal).
cancelled: boolTrue when the cancel predicate returned true and the tree was terminated.
timed_out: boolTrue when the deadline passed and the tree was terminated. Never set together with
cancelled: the predicate is evaluated first.
stdout_tail: Vec<u8>The last stdout_tail_cap bytes of stdout, exactly as the child wrote them.
stderr_tail: StringThe last lines of stderr, joined by \n (no trailing newline), at most
stderr_tail_cap bytes; invalid UTF-8 is replaced. A cut that falls inside a
multi-byte character drops the partial character.
Trait Implementations§
Source§impl Clone for StreamOutput
impl Clone for StreamOutput
Source§impl Debug for StreamOutput
impl Debug for StreamOutput
impl Eq for StreamOutput
Source§impl PartialEq for StreamOutput
impl PartialEq for StreamOutput
impl StructuralPartialEq for StreamOutput
Auto Trait Implementations§
impl Freeze for StreamOutput
impl RefUnwindSafe for StreamOutput
impl Send for StreamOutput
impl Sync for StreamOutput
impl Unpin for StreamOutput
impl UnsafeUnpin for StreamOutput
impl UnwindSafe for StreamOutput
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