pub enum CommandStdin {
Null,
Inherit,
Stream(SharedInput),
OsPipe(OsPipeReader),
}Variants§
Null
Isolated null stdin. Preserves the previous None behavior.
Inherit
Stream(SharedInput)
OsPipe(OsPipeReader)
Direct OS kernel pipe reader for concurrent pipelines. See
CommandStdout::OsPipe for the single use contract.
Implementations§
Source§impl CommandStdin
impl CommandStdin
Sourcepub fn is_redirected(&self) -> bool
pub fn is_redirected(&self) -> bool
Whether stdin is bound to a virtual pipe (WITH_IO [stdin=...]).
A redirected stdin can never answer an interactive prompt, so
terminal-facing steps treat this as non-interactive even when
the host process itself owns a TTY.
Trait Implementations§
Source§impl Clone for CommandStdin
impl Clone for CommandStdin
Source§impl Default for CommandStdin
impl Default for CommandStdin
Auto Trait Implementations§
impl Forget for CommandStdin
impl Freeze for CommandStdinwhere
*const ArcInner<Mutex<dyn Read + Send>> is !null: Freeze,
PhantomData<ArcInner<Mutex<dyn Read + Send>>>: Freeze,
*const ArcInner<Mutex<Option<PipeReader>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Option<PipeReader>>>>: Freeze,
impl Move for CommandStdin
impl RefUnwindSafe for CommandStdinwhere
Atomic<usize>: RefUnwindSafe,
Mutex<dyn Read + Send>: RefUnwindSafe,
Mutex<Option<PipeReader>>: RefUnwindSafe,
impl Send for CommandStdin
impl Sync for CommandStdin
impl Unpin for CommandStdin
impl UnsafeUnpin for CommandStdinwhere
*const ArcInner<Mutex<dyn Read + Send>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<dyn Read + Send>>>: UnsafeUnpin,
*const ArcInner<Mutex<Option<PipeReader>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<PipeReader>>>>: UnsafeUnpin,
impl UnwindSafe for CommandStdin
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