pub struct CapturedOutput {
pub root: RootId,
pub is_stderr: bool,
pub text: String,
}Expand description
One line of program output captured for a root that opted into
RootOptions::capture_output
instead of inheriting process stdout/stderr. Produced by
write_stdout/write_stderr when the currently-running task’s root
is registered via mark_root_capturing, drained by
Runtime::take_captured_output.
Fields§
§root: RootId§is_stderr: bool§text: StringTrait Implementations§
Source§impl Clone for CapturedOutput
impl Clone for CapturedOutput
Source§fn clone(&self) -> CapturedOutput
fn clone(&self) -> CapturedOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CapturedOutput
impl RefUnwindSafe for CapturedOutput
impl Send for CapturedOutput
impl Sync for CapturedOutput
impl Unpin for CapturedOutput
impl UnsafeUnpin for CapturedOutput
impl UnwindSafe for CapturedOutput
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