pub enum CommandStderr {
Inherit,
Stream(SharedOutput),
OsPipe(OsPipeWriter),
}Variants§
Inherit
Stream(SharedOutput)
OsPipe(OsPipeWriter)
Direct OS kernel pipe writer, mirroring CommandStdout::OsPipe.
Merging stdout and stderr into one live name takes the same slot
twice, so the second take bails; merge in shell via 2>&1 instead.
Trait Implementations§
Source§impl Clone for CommandStderr
impl Clone for CommandStderr
Auto Trait Implementations§
impl Forget for CommandStderr
impl Freeze for CommandStderrwhere
*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 CommandStderr
impl RefUnwindSafe for CommandStderrwhere
Atomic<usize>: RefUnwindSafe,
Mutex<dyn Write + Send>: RefUnwindSafe,
Mutex<Option<PipeWriter>>: RefUnwindSafe,
impl Send for CommandStderr
impl Sync for CommandStderr
impl Unpin for CommandStderr
impl UnsafeUnpin for CommandStderrwhere
*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 CommandStderr
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