pub enum CommandStdout {
Inherit,
Stream(SharedOutput),
Capture,
OsPipe(OsPipeWriter),
}Variants§
Inherit
Stream(SharedOutput)
Capture
OsPipe(OsPipeWriter)
Direct OS kernel pipe writer for concurrent pipelines. Single use:
the handle is taken on spawn and the parent retains no copy, so the
reader observes EOF once the producer exits. Only valid with
concurrently spawned consumers (ASYNC); never for sequential steps.
Trait Implementations§
Source§impl Clone for CommandStdout
impl Clone for CommandStdout
Auto Trait Implementations§
impl Forget for CommandStdout
impl Freeze for CommandStdoutwhere
*const ArcInner<Mutex<dyn Write + Send>> is !null: Freeze,
PhantomData<ArcInner<Mutex<dyn Write + Send>>>: Freeze,
*const ArcInner<Mutex<Option<PipeWriter>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Option<PipeWriter>>>>: Freeze,
impl Move for CommandStdout
impl RefUnwindSafe for CommandStdoutwhere
Atomic<usize>: RefUnwindSafe,
Mutex<dyn Write + Send>: RefUnwindSafe,
Mutex<Option<PipeWriter>>: RefUnwindSafe,
impl Send for CommandStdout
impl Sync for CommandStdout
impl Unpin for CommandStdout
impl UnsafeUnpin for CommandStdoutwhere
*const ArcInner<Mutex<dyn Write + Send>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<dyn Write + Send>>>: UnsafeUnpin,
*const ArcInner<Mutex<Option<PipeWriter>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<PipeWriter>>>>: UnsafeUnpin,
impl UnwindSafe for CommandStdout
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